NCPA/Nagios Core - Service Check
Posted: Thu Oct 05, 2017 1:49 pm
I am going in circles trying to figure out a way to check if a service is up or down on a windows server. Just for an example I want to monitor if the service wuauserv is up or down
What would I need to add to NCPA passive checks configuration on the server
example: %HOSTNAME%|CPU Usage = /cpu/percent --warning 80 --critical 90 --aggregate avg thats for cpu usgae... what would I add to monitor a service?
Now on the Daemon server what would I add to the NCPA.cfg file
example:
define service {
host_name xxxxxxx
service_description Process Count (do I change that to wuauserv)
check_command check_ncpa!-t xxxxxx -P 5693 -M processes -w 150 -c 200 (What would I add here to just check if it is running/up or down)
max_check_attempts 5
check_interval 5 (how would I change that to a 30 second or minute interval)
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
What would I need to add to NCPA passive checks configuration on the server
example: %HOSTNAME%|CPU Usage = /cpu/percent --warning 80 --critical 90 --aggregate avg thats for cpu usgae... what would I add to monitor a service?
Now on the Daemon server what would I add to the NCPA.cfg file
example:
define service {
host_name xxxxxxx
service_description Process Count (do I change that to wuauserv)
check_command check_ncpa!-t xxxxxx -P 5693 -M processes -w 150 -c 200 (What would I add here to just check if it is running/up or down)
max_check_attempts 5
check_interval 5 (how would I change that to a 30 second or minute interval)
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}