check_dns issue

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.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: check_dns issue

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_dns issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: check_dns issue

Post by batchen »

Thanks! that has resolved my issue!
:D :D :D :D
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: check_dns issue

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked