Page 1 of 1
Getting Error from check_dns after upgrade of Nagios XI
Posted: Thu Nov 12, 2020 12:09 pm
by RwynneZAS
I upgraded my Nagios XI installation last night to 5.7.4 (from 5.6.x) and everything appears fine, except for one error.
I have a web service that I've monitsored for some time, and one of the checks is DNS Resolution. It is now throwing this error:
"DNS CRITICAL - query type of -querytype=A was not found for 10.110.150.105
I tried changing the hostname to the FQDN, but it still errors in this way. I don't see this problem from other DNS Resolution checks that I'm doing.
How do I address this? Thanks!
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Fri Nov 13, 2020 10:49 am
by benjaminsmith
Hi,
There was a syntax change in the latest version of check_dns. If you can post the full check command I can confirm this for you. The following thread has some information about the change and how to correct it.
Reverse DNS stopped working after upgrade to 5.7
Benjamin
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Fri Nov 13, 2020 4:17 pm
by RwynneZAS
Hrm. When i go to reconfigure service, it sends me to the CCM.
In the CCM, there is no check command defined, but it is using the xiwizard_website_dns_service as a template, and appears to have no other parameters.
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Fri Nov 13, 2020 4:51 pm
by RwynneZAS
Ok, and I found that under service templates, and it has the command listed as:
$USER1$/check_dns -H $HOSTADDRESS$ $ARG1$
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Mon Nov 16, 2020 4:04 pm
by benjaminsmith
Hi,
The easiest method to view the full check command and to test this from the CLI is the go to Configure > CCM and then find the service and select the
Run Check Command form the Common Settings tab.
run-check-command-3.png
For detailed instructions, please see the knowledgebase article below. Once you retrieve the full check command, please post it to the thread for us to review. Thanks.
Nagios XI - How To Test Check Commands From The Command-line
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Tue Nov 24, 2020 5:12 pm
by RwynneZAS
That was where I looked. It is completely blank.
nagios-check-dns-command.PNG
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Wed Nov 25, 2020 12:20 pm
by benjaminsmith
Hi,
Well, that's odd. Did you use the wizard to set this up? You should see something like this:
command-view.png
I would try to re-run the wizard. However, before doing that, make sure you have the latest version of the Wizard. Go to Admin > System Extensions > Manage Config Wizards, and then select the
Check for Updates button, and then update if needed.
Otherwise, send me the system profile and I can track down the settings in the configurations. Thanks, Benjamin
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Wed Dec 02, 2020 10:43 pm
by RwynneZAS
I deleted and re-added the website with the wizard, and it works properly now. Thanks for the assist!
Re: Getting Error from check_dns after upgrade of Nagios XI
Posted: Thu Dec 03, 2020 9:09 am
by scottwilkerson
RwynneZAS wrote:I deleted and re-added the website with the wizard, and it works properly now. Thanks for the assist!
Great!
Locking thread