Page 1 of 1

check_nt

Posted: Mon Jun 27, 2016 9:20 am
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

Re: check_nt

Posted: Mon Jun 27, 2016 11:41 am
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
	}

Re: check_nt

Posted: Mon Jun 27, 2016 2:52 pm
by HaschkeD
Ok. But this Generates a critical alert of Service is stopped.
I want to generate an alert of Service is Started.

Re: check_nt

Posted: Mon Jun 27, 2016 3:05 pm
by hsmith
You need Negate! Check that document out. The document is for Core, but the same ideas still apply for XI.