Page 1 of 1

Windows Service check

Posted: Tue Feb 02, 2016 10:26 am
by rmank
Hello ,

we in the phase of moving to NAGIOS XI from PATROL .So there is a very specific need to monitor

-->Windows services which are down (set with automatic)
-->Trying with checkServiceState

[root libexec]# ./check_nrpe -H XXXX -p XXX -t 30 -c CheckServiceState -a CheckAll
CRITICAL: AeLookupSvc: stopped (critical), AudioSrv: stopped (critical), Zabbix Agent: stopped (critical)

but the concern is here that ,we will get only one alert ,even when there are multiple services are going down .So is there a way to set
-->to get individual alerts when there is a service failure
-->get two individual alerts if there are two process down at the same time ..

a sample view is attached from Patrol here ...

Re: Windows Service check

Posted: Tue Feb 02, 2016 11:04 am
by rkennedy
You should be able to create a new service with Nagios, for each service you'd like to check. The command can be adjusted to use specific services. See below for an example -

Code: Select all

[root@suse11 libexec]# ./check_nrpe -H 192.168.5.47 -c CheckServiceState -a MMCSS
CRITICAL: MMCSS: stopped delayed ()|'MMCSS'=1;0;4

Re: Windows Service check

Posted: Tue Feb 02, 2016 11:20 am
by rmank
thanks a lot .so in general we have to explicitly set the service name unless we sort it with own split script ...

Re: Windows Service check

Posted: Tue Feb 02, 2016 11:30 am
by rkennedy
-->to get individual alerts when there is a service failure
-->get two individual alerts if there are two process down at the same time ..
In order for you to see alert changes per status, yes, and for notifications sake, yes.

Re: Windows Service check

Posted: Wed Feb 03, 2016 7:14 am
by rmank
thanks a lot !

Re: Windows Service check

Posted: Wed Feb 03, 2016 10:58 am
by bwallace
Were there any other questions or may we lock this thread?

Re: Windows Service check

Posted: Wed Feb 03, 2016 11:05 am
by rmank
certainly we can close it ...........

Re: Windows Service check

Posted: Wed Feb 03, 2016 11:25 am
by rkennedy
No problem, am I good to mark this thread as resolved?