Chapter 9:
Nagios Integration
200
use
generic-service
check_command
check_serial_status
active_checks_enabled
0
passive_checks_enabled 1
}
define servicedependency{
name
opengear_nrpe_daemon_dep
host_name
opengear
dependent_host_name
server
dependent_service_description Serial Status
service_description
NRPE Daemon
execution_failure_criteria
w,u,c
}
; Port Log
define command{
command_name check_port_log
command_line $USER1$/check_nrpe -H 192.168.254.147 -p 5666 -c
port_log_$HOSTNAME$
}
define service {
service_description
Port Log
host_name
server
use
generic-service
check_command
check_port_log
}
define service {
service_description
port-log-server
host_name
server
use
generic-service
check_command
check_port_log
active_checks_enabled
0
passive_checks_enabled 1
}
define servicedependency{
name
opengear_nrpe_daemon_dep
host_name
opengear
dependent_host_name
server
dependent_service_description Port Log
service_description
NRPE Daemon
execution_failure_criteria
w,u,c
}
; Ping
define command{
command_name check_ping_via_opengear
command_line $USER1$/check_nrpe -H 192.168.254.147 -p 5666 -c
host_ping_$HOSTNAME$
}
define service {
service_description
Host Ping
host_name
server