diff options
Diffstat (limited to 'nagios-plugins/check_etc_resolv')
| -rwxr-xr-x | nagios-plugins/check_etc_resolv | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/nagios-plugins/check_etc_resolv b/nagios-plugins/check_etc_resolv index 18ac87d..185cf39 100755 --- a/nagios-plugins/check_etc_resolv +++ b/nagios-plugins/check_etc_resolv @@ -3,7 +3,8 @@  # Author: Petter Reinholdtsen <pere@hungry.com>  # Date: 2001-11-09  # -# Check /etc/resolv.conf, and make sure the name servers listed are working. +# Check /etc/resolv.conf, and make sure the name servers listed are +# working.  It will ignore entries with '# NAGIOSIGNORE' at the end.  use Socket; @@ -101,6 +102,7 @@ sub check_etc_resolv_conf {          chomp;          s/\#.+//;          # Skip comments          next if (/^\s*$/); # Skip empty lines +        next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored          if (/^nameserver\s+(\S+)/) {              $count++;              local ($error) = test_dns_server($1); | 
