]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- created
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 7 Sep 2009 08:11:06 +0000 (08:11 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 7 Sep 2009 08:11:06 +0000 (08:11 +0000)
svn-id: @10535

commands/check_ntp.cfg [new file with mode: 0644]

diff --git a/commands/check_ntp.cfg b/commands/check_ntp.cfg
new file mode 100644 (file)
index 0000000..9f01798
--- /dev/null
@@ -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
+}
This page took 0.029201 seconds and 4 git commands to generate.