User NRPE to monitor multiple Windows Server Services
Posted: Tue Aug 26, 2014 10:56 pm
We are currently running Ubuntu 14.04 and Nagios 4.0.7 with NSClient++
Is there away to monitor multiple windows services in one rule
I want to to be able to use a check_command like check_win2012_services to monitor 5+ services.
Currently I can only get them to work one by one like so, this is defined in the host file(Server) on Nagios
#Define a service to Check a Windows Service
define service{
use windows-server-service
host_name PERSPLUNK01
service_description Splunkd Service
check_command check_win2012_service!Splunkd
}
define service{
use windows-server-service
host_name PERSPLUNK01
service_description SplunkWeb Service
check_command check_win2012_service!splunkweb
}
The command I am using looks like this
# CheckService
define command{
command_name check_win2012_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a ShowAll "$ARG1$"
}
I know it was possible when we used check_nt.
Do I need to do something on the remote hosts site (where NSclient++) is installed
I appreciate the assitance, been hitting a brick wall on this.
Bryce
Is there away to monitor multiple windows services in one rule
I want to to be able to use a check_command like check_win2012_services to monitor 5+ services.
Currently I can only get them to work one by one like so, this is defined in the host file(Server) on Nagios
#Define a service to Check a Windows Service
define service{
use windows-server-service
host_name PERSPLUNK01
service_description Splunkd Service
check_command check_win2012_service!Splunkd
}
define service{
use windows-server-service
host_name PERSPLUNK01
service_description SplunkWeb Service
check_command check_win2012_service!splunkweb
}
The command I am using looks like this
# CheckService
define command{
command_name check_win2012_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a ShowAll "$ARG1$"
}
I know it was possible when we used check_nt.
Do I need to do something on the remote hosts site (where NSclient++) is installed
I appreciate the assitance, been hitting a brick wall on this.
Bryce