check_dns false positive

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
putty
Posts: 1
Joined: Mon Mar 24, 2014 5:24 am

check_dns false positive

Post by putty »

Hi All

We used the Nagios Plugin Release 1.14, 1.15 and 2.0 and today we change our DNS Server to a other. Then we disabled the DNS Service, but the check returns a OK state.
I might also do something wrong, but it could be a bug ;)

Code: Select all

[root@nagios plugins]$ ./check_dns -s "IP from a non DNS Server" -H google.com
DNS OK: 4.016 seconds response time. google.ch returns |time=4.016219s;;;0.000000

Code: Select all

[root@nagios plugins]$ ./check_dns -s "IP from a DNS Server" -H google.com
DNS OK: 0.011 seconds response time. google.ch returns 173.194.40.55,173.194.40.56,173.194.40.63|time=0.011102s;;;0.000000
thank you guys, you are doing a great work
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_dns false positive

Post by sreinhardt »

Well that's certainly interesting, nice catch! I'll get looking into this.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked