From 5c87040e8dcb13d102301e271ed91f48e658ee2e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 17 May 2015 11:57:22 +0200 Subject: [PATCH] dsa-check-config: check for ipv6 DAD failures --- dsa-nagios-checks/checks/dsa-check-config | 13 ++++++++++++- dsa-nagios-checks/debian/changelog | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dsa-nagios-checks/checks/dsa-check-config b/dsa-nagios-checks/checks/dsa-check-config index ae5fa74..d4b845d 100755 --- a/dsa-nagios-checks/checks/dsa-check-config +++ b/dsa-nagios-checks/checks/dsa-check-config @@ -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; " diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index ce71c60..78fc3a0 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -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 Tue, 12 May 2015 10:09:21 +0200 + -- Peter Palfrader Sun, 17 May 2015 11:57:06 +0200 dsa-nagios-checks (107) unstable; urgency=medium -- 2.20.1