Reverse DNS stopped working after upgrade to 5.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
damindd
Posts: 9
Joined: Tue Mar 28, 2017 1:13 pm

Reverse DNS stopped working after upgrade to 5.7

Post by damindd »

We have a few reverse DNS services that quit working after upgrading to 5.7.

The check command is check_xi_service_dnsquery

The Command View is $user1$/check_dns -H 10.0.0.2 -a 'name = dnsname.com.' -s dnsserver_IP


Did something change with check_xi_service_dnsquery requiring a different format?

Thanks.
damindd
Posts: 9
Joined: Tue Mar 28, 2017 1:13 pm

Re: Reverse DNS stopped working after upgrade to 5.7

Post by damindd »

Additional info:

check_dns v2.3.3 (nagios-plugins 2.3.3)

bind-export-libs.x86_64 32:9.11.4-16.P2.el7_8.6
bind-libs.x86_64 32:9.11.4-16.P2.el7_8.6
bind-libs-lite.x86_64 32:9.11.4-16.P2.el7_8.6
bind-license.noarch 32:9.11.4-16.P2.el7_8.6
bind-utils.x86_64 32:9.11.4-16.P2.el7_8.6

Results from manual run:
[root@nagiosxi /]# /usr/local/nagios/libexec/check_dns -H 10.0.0.2 -a 'name = server1.domain.com.' -s 10.0.0.5
DNS CRITICAL - expected 'name = server1.domain.com.' but got ''
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Reverse DNS stopped working after upgrade to 5.7

Post by benjaminsmith »

Hi @damindd,

It looks there was a minor syntax change in the latest version of the plugin. Try adjusting your check command as follows and let me know if that works on your system ( remove the name = from the expected address and add the -q any option to the command string).

Code: Select all

check_dns -H 10.0.0.2 -a 'server1.domain.com.' -s 10.0.0.5 -q any
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
damindd
Posts: 9
Joined: Tue Mar 28, 2017 1:13 pm

Re: Reverse DNS stopped working after upgrade to 5.7

Post by damindd »

Thank you for the solution. It works perfectly.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Reverse DNS stopped working after upgrade to 5.7

Post by benjaminsmith »

Thank you for the solution. It works perfectly.
Excellent! Thanks for the feedback.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked