SVN: nagios-config/trunk/commands/check_ntp.cfg
glen
glen at pld-linux.org
Mon Sep 7 10:11:07 CEST 2009
Author: glen
Date: Mon Sep 7 10:11:06 2009
New Revision: 10535
Added:
nagios-config/trunk/commands/check_ntp.cfg
Log:
- created
Added: nagios-config/trunk/commands/check_ntp.cfg
==============================================================================
--- (empty file)
+++ nagios-config/trunk/commands/check_ntp.cfg Mon Sep 7 10:11:06 2009
@@ -0,0 +1,48 @@
+# Checks the selected NTP server.
+# DEPRECATED: use check_ntp_time or check_ntp_peer
+define command {
+ command_name check_ntp
+ command_line $USER1$/check_ntp -H $HOSTADDRESS$ $ARG1$
+}
+
+# Checks the clock offset with the NTP server.
+define command {
+ command_name check_ntp_time
+ command_line $USER1$/check_ntp_time -H $HOSTADDRESS$ $ARG1$
+}
+
+# Check the health of an NTP server.
+define command {
+ command_name check_ntp_peer
+ command_line $USER1$/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
+}
More information about the pld-cvs-commit
mailing list