Page 2 of 2

Re: check_dns issue

Posted: Sun Feb 07, 2016 7:16 am
by batchen
Hi,

then if i want to check if my localhost is doing dns resolving what should i do?
this why i can know that there is no internet issue in the local host..

Regards

Re: check_dns issue

Posted: Sun Feb 07, 2016 10:08 pm
by Box293
They are two different checks really.
batchen wrote:then if i want to check if my localhost is doing dns resolving what should i do?
This will check if DNS is resolving:

Code: Select all

./check_dns -H www.google.com -t 40
Keep in mind that this is testing if the nagios server can resolve DNS, the DNS servers it uses for lookups is defined perhaps in /etc/resolv.conf

batchen wrote:this why i can know that there is no internet issue in the local host..
Perhaps you also want a ping check, as this will determine if traffic is flowing:

Code: Select all

./check_icmp -H http://www.google.com

Re: check_dns issue

Posted: Mon Feb 08, 2016 4:13 am
by batchen
Thanks! that has resolved my issue!
:D :D :D :D

Re: check_dns issue

Posted: Mon Feb 08, 2016 10:21 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.