Getting Error from check_dns after upgrade of Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Getting Error from check_dns after upgrade of Nagios xi

Post 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!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting Error from check_dns after upgrade of Nagios xi

Post 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
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!
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: Getting Error from check_dns after upgrade of Nagios xi

Post 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.
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: Getting Error from check_dns after upgrade of Nagios xi

Post by RwynneZAS »

Ok, and I found that under service templates, and it has the command listed as:

$USER1$/check_dns -H $HOSTADDRESS$ $ARG1$
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting Error from check_dns after upgrade of Nagios xi

Post 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
You do not have the required permissions to view the files attached to this post.
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!
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: Getting Error from check_dns after upgrade of Nagios xi

Post by RwynneZAS »

That was where I looked. It is completely blank.
nagios-check-dns-command.PNG
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting Error from check_dns after upgrade of Nagios xi

Post 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
You do not have the required permissions to view the files attached to this post.
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!
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: Getting Error from check_dns after upgrade of Nagios xi

Post by RwynneZAS »

I deleted and re-added the website with the wizard, and it works properly now. Thanks for the assist!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Getting Error from check_dns after upgrade of Nagios xi

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart