1
0
Fork 0

Compare commits

..

No commits in common. "169bd2913d76af3a6b1922928d60db550a04e557" and "8e37cb24787d28fc6feb8d414501224c46c3548a" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View file

@ -102,7 +102,8 @@ while [ "$#" -gt 0 ]; do
fi
for IPADDR in $LIST_IP_NS_SERVERS; do
# Query our server
if OUTPUT=$( dig @"$IPADDR" $DOMAIN SOA +short 2>&1 ); then
OUTPUT=$( dig @"$IPADDR" $DOMAIN SOA +short 2>&1 )
if [ "$?" -eq 0 ]; then
# The server responded, store the SOA for later analyze
LIST_SOA="$( printf "%s\n%s" "$LIST_SOA" "$OUTPUT" | grep -v "^$" )"
else
@ -111,7 +112,7 @@ while [ "$#" -gt 0 ]; do
OUTPUT_DETAIL_CRITICAL="Problematic server behind IP"
OUTPUT_EXIT_STATUS=$STATE_CRITICAL
fi
OUTPUT_DETAIL_CRITICAL="$OUTPUT_DETAIL_CRITICAL $IPADDR"
OUTPUT_DETAIL_CRITICAL="$OUTPUT_DETAIL_CRITICAL $IPADDRESS"
fi
done

View file

@ -5,8 +5,5 @@ command[check_dns_zone_rrsig_examplenet]=/usr/local/share/scripts-admin/nagios/c
# + validité des noms de domaines
command[check_whois]=/usr/local/share/scripts-admin/nagios/check_whois -w 30d -c 10d example.net example.com example.org
# + accessibilité des serveurs pointés par les glue records
command[check_glue_records]=/usr/local/share/scripts-admin/nagios/check_glue_records.sh example.net
# Stats sur BIND9
command[check_bind9]=/usr/local/share/scripts-admin/nagios/check_bind9.pl --pid-path /var/run/named/named.pid --stats-path /var/cache/bind/named.stats --rndc-path /usr/sbin/rndc