# Checks the selected NTP server. # DEPRECATED: use check_ntp_time or check_ntp_peer define command { command_name check_ntp command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$ $ARG1$ } # Checks the clock offset with the NTP server. define command { command_name check_ntp_time command_line /usr/lib/nagios/plugins/check_ntp_time -H $HOSTADDRESS$ $ARG1$ } # Check the health of an NTP server. define command { command_name check_ntp_peer command_line /usr/lib/nagios/plugins/check_ntp_peer -H $HOSTADDRESS$ $ARG1$ } define service { use generic-service name ntp service_description ntp register 0 normal_check_interval 30 notification_interval 120 check_command check_ntp } define service { use ntp name ntp_time service_description ntp_time register 0 check_command check_ntp_time } define service { use ntp name ntp_peer service_description ntp_peer register 0 check_command check_ntp_peer }