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.
Reverse DNS stopped working after upgrade to 5.7
Re: Reverse DNS stopped working after upgrade to 5.7
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 ''
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
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).
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Reverse DNS stopped working after upgrade to 5.7
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
Excellent! Thanks for the feedback.Thank you for the solution. It works perfectly.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!