Code: Select all
define service {
host_name "<host list>"
service_description Check NTP Time with Rolex
use xiwizard_nrpe_service
display_name Check NTP Time with Rolex
check_command check_nrpe!check_ntp_time!!!!!!!
max_check_attempts 3
check_interval 1
retry_interval 1
active_checks_enabled 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contact_groups P1_CRIT_NET,P2_WARN_NET
_xiwizard linux-server
register 1
}
Code: Select all
$ /usr/local/nagios/libexec/check_nrpe -H nagiosxi01 -t 60 -c check_ntp_time
NRPE: Command 'check_ntp_time' not defined