check_nt

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
HaschkeD
Posts: 50
Joined: Tue Feb 02, 2016 8:35 am

check_nt

Post by HaschkeD »

Hello,
im using check_nt to Monitor if a Windows Service is down.
Is it possible to use check_nt if a sevice is running.
E. g. that if the Service is running a critical alert is generated?

Thanks
Dennis
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nt

Post by hsmith »

Check out this page: https://assets.nagios.com/downloads/nag ... ndows.html

Code: Select all

define service{
	use			generic-service
	host_name			winserver
	service_description	W3SVC
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
	}
Former Nagios Employee.
me.
HaschkeD
Posts: 50
Joined: Tue Feb 02, 2016 8:35 am

Re: check_nt

Post by HaschkeD »

Ok. But this Generates a critical alert of Service is stopped.
I want to generate an alert of Service is Started.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nt

Post by hsmith »

You need Negate! Check that document out. The document is for Core, but the same ideas still apply for XI.
Former Nagios Employee.
me.
Locked