dsa-check-config: check for ipv6 DAD failures
authorPeter Palfrader <peter@palfrader.org>
Sun, 17 May 2015 09:57:22 +0000 (11:57 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 17 May 2015 09:57:27 +0000 (11:57 +0200)
dsa-nagios-checks/checks/dsa-check-config
dsa-nagios-checks/debian/changelog

index ae5fa74..d4b845d 100755 (executable)
@@ -71,15 +71,26 @@ check_ssh_hostkeys() {
                        return
                fi
        else
-               log ok "no ed25519 host key."
+               log ok "no ed25519 host key"
                return
        fi
 }
 
+check_ipv6_dad() {
+       if ip a | grep -q dadfailed; then
+               log warn "some configured ipv6 addresses failed DAD"
+       else
+               log ok "no DAD failures"
+       fi
+
+}
+
+
 
 check_aliases
 check_ldap_conf
 check_ssh_hostkeys
+check_ipv6_dad
 
 [ "$critical" = "" ] || echo -n "Critical: $critical; "
 [ "$warn" = "" ] || echo -n "Warning: $warn; "
index ce71c60..78fc3a0 100644 (file)
@@ -3,8 +3,9 @@ dsa-nagios-checks (108) UNRELEASED; urgency=medium
   * dsa-check-stunnel-sanity: Fix variable name in output.
   * dsa-check-dabackup: Fix regex as rsync now adds thousands separator on its
       numbers.
+  * dsa-check-config: check for DAD failures.
 
- -- Peter Palfrader <weasel@debian.org>  Tue, 12 May 2015 10:09:21 +0200
+ -- Peter Palfrader <weasel@debian.org>  Sun, 17 May 2015 11:57:06 +0200
 
 dsa-nagios-checks (107) unstable; urgency=medium