Allow some skew in mirrorsyncing
authorPeter Palfrader <peter@palfrader.org>
Sun, 23 May 2010 13:28:53 +0000 (15:28 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 23 May 2010 13:28:53 +0000 (15:28 +0200)
config/nagios-master.cfg
config/static/checkcommands.cfg

index 049f783..a6d7bfb 100644 (file)
@@ -2005,26 +2005,26 @@ services:
  #####
   -
     name: mirror sync - bugs
-    check: "dsa_check_mirrorsync!bugs.debian.org!project/trace/bugs-master.debian.org"
+    check: "dsa_check_mirrorsync_skew!bugs.debian.org!project/trace/bugs-master.debian.org!120!600"
     hosts: global
   -
     name: mirror sync - security
-    check: "dsa_check_mirrorsync!security-nagios.debian.org!project/trace/security-master.debian.org"
+    check: "dsa_check_mirrorsync_skew!security-nagios.debian.org!project/trace/security-master.debian.org!150!3600"
     hosts: global
   -
     name: mirror sync - volatile
-    check: "dsa_check_mirrorsync!volatile.debian.org!debian-volatile/project/trace/volatile-master.debian.org"
+    check: "dsa_check_mirrorsync_skew!volatile.debian.org!debian-volatile/project/trace/volatile-master.debian.org!150!3600"
     hosts: global
   -
     name: mirror sync - packages
-    check: "dsa_check_mirrorsync!packages.debian.org!Pics/.trace"
+    check: "dsa_check_mirrorsync_skew!packages.debian.org!Pics/.trace!3600!57600"
     hosts: global
     normal_check_interval: 15
     max_check_attempts: 5
     retry_check_interval: 5
   -
     name: mirror sync - snapshot
-    check: "dsa_check_mirrorsync!snapshot.debian.org!project/trace/snapshot-master.debian.org"
+    check: "dsa_check_mirrorsync_skew!snapshot.debian.org!project/trace/snapshot-master.debian.org!1800!28800"
     hosts: global
     normal_check_interval: 15
     max_check_attempts: 5
index dd4cb06..4126961 100644 (file)
@@ -47,6 +47,10 @@ define command{
        command_name    dsa_check_mirrorsync
        command_line    /usr/lib/nagios/plugins/dsa-check-mirrorsync --host "$ARG1$" --path "$ARG2$"
 }
+define command{
+       command_name    dsa_check_mirrorsync_skew
+       command_line    /usr/lib/nagios/plugins/dsa-check-mirrorsync --host "$ARG1$" --path "$ARG2$" --allow-skew "$ARG3$"
+}
 define command{
        command_name    dsa_check_soas
        command_line    /usr/lib/nagios/plugins/dsa-check-soas "$ARG1$"