Page 1 of 1
DNS IP Match is CRITICAL
Posted: Wed Jun 26, 2019 4:02 am
by RIDS_I2MP
Hello Team,
We are monitoring a DNS server, getting below error in the service.
DNS CRITICAL - expected '10.144.223.152' but got 'name = eu1papw196.shareprod.org.'
Server name: eu1papw196.shareprod.org
IP: 10.144.223.152
I have tried replacing the name in argument with IP and server name both, but getting the same error.
Kindly, help us on this issue on priority.
Re: DNS IP Match is CRITICAL
Posted: Wed Jun 26, 2019 11:20 am
by benjaminsmith
Hello,
Can you go to Configure > CCM and click on the Services link from the left hand menu, and then find this service and click on it. Next, from the Common Settings menu click on Run Check Command. Run the check command and post a screen shot, so we can see the exact check command and its arguments.
Thanks.
Aslo, is there a chance this is a dynamic DNS as I ran an nslookup on the domain name and it returned a different IP address than in your post.
Re: DNS IP Match is CRITICAL
Posted: Thu Jun 27, 2019 6:02 am
by RIDS_I2MP
Hello,
I am attaching the screen shot here.
Also, we checked with the owner of the server if this is a dynamic DNS, he informed us that DHCP is not enabled.
Re: DNS IP Match is CRITICAL
Posted: Thu Jun 27, 2019 10:03 am
by benjaminsmith
Hello,
What domain are you expecting to return or checking? When testing this on my system, I'm getting a different IP address then what you have?
check_dns.png
Re: DNS IP Match is CRITICAL
Posted: Fri Jun 28, 2019 3:27 am
by RIDS_I2MP
Hello,
I have also checked the nslookup command and getting below output:
[nagios@eu1papu003 ~]$ nslookup eu1papw196.shareprod.org
Server: 10.144.223.14
Address: 10.144.223.14#53
Name: eu1papw196.shareprod.org
Address: 10.144.223.152
[nagios@eu1papu003 ~]$
We are expecting the shareprod domain and IP is 10.144.223.152 only.
Re: DNS IP Match is CRITICAL
Posted: Fri Jun 28, 2019 10:05 am
by benjaminsmith
Hello
@RIDS_I2MP,
Please let me know which wizard you are using to set up this service. I tested this using the DNS Query Wizard in Nagios XI and it will setup the command definition as follows.
For example, the command definition:
and then set $ARG1$ = -H eu1papw196.shareprod.org -a 10.144.223.152 for the IP match and $ARG1$ = -H eu1papw196.shareprod.org for DNS resolution.
For the IP Match:
check_dns_wizard.png
For the DNS Resolution:
check_dns_resolution.png
Re: DNS IP Match is CRITICAL
Posted: Sun Jun 30, 2019 11:26 pm
by RIDS_I2MP
Hello,
We were using the same config wizard, not sure how the check_command was different.
I have made the changes as per your screen shot and now its working fine.
Thanks a lot for your help!!
Re: DNS IP Match is CRITICAL
Posted: Mon Jul 01, 2019 7:17 am
by scottwilkerson
RIDS_I2MP wrote:Hello,
We were using the same config wizard, not sure how the check_command was different.
I have made the changes as per your screen shot and now its working fine.
Thanks a lot for your help!!
Glad to hear it is working!
Locking thread