Auto Discovery Job Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Auto Discovery Job Issues

Post by stephen.chontofalsky »

Hello Nagios,

I’m currently trying out a 60-day trial of Nagios XI. We are a Windows environment and I’m trying to monitor Windows based servers. The Nagios system itself is a VMware image. I have successfully set up some basic monitoring manually on 5 of our servers so far, noting that I needed to install NSClient++ on those servers. Then I decided to play around with the Auto Discovery configuration wizard.

Auto Discovery runs successfully and will find devices within my given range of IPs. However once I click on the newly discovered devices and try to view them, the page is blank.

I get to “Step 1” of the auto discovery which asks me which of the discovered devices I’d like to view. No matter what I select on this step, the next step always appears like its loading but then stops and shows a blank screen (besides the navigation bar).

What is going wrong?

Thanks for the help,
Stephen
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Auto Discovery Job Issues

Post by rkennedy »

Can you try accessing it, and then post a tail of your apache log files?

Code: Select all

tail -n100 /var/log/httpd/ssl_access_log
tail -n100 /var/log/httpd/ssl_error_log
tail -n100 /var/log/httpd/access_log
tail -n100 /var/log/httpd/error_log
Also - what version of XI are you running, as well as what version of the Auto-Discovery wizard? (Admin -> Manage Config Wizards)
Former Nagios Employee
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Re: Auto Discovery Job Issues

Post by stephen.chontofalsky »

Sorry to ask such a basic question, but how do I view those Apache log files?
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Re: Auto Discovery Job Issues

Post by stephen.chontofalsky »

Nevermind, I (think) figured it out:

Image

Image

Image

Image
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Auto Discovery Job Issues

Post by rkennedy »

Thanks for those. It definitely helped, I think you're missing a couple files. Can you try following the instructions in this post? https://support.nagios.com/forum/viewto ... 12#p155791

If you'd rather do this using WinSCP or some other SFTP program, try following these steps -
- open a SFTP connection to your XI machine
- navigate to /usr/local/nagiosxi/html/config/ and rename monitoringwizard.php to monitoringwizard.php.old - then upload the new php file included in the zip above.
- navigate to /usr/local/nagiosxi/html/includes/configwizards/autodiscovery/ and rename autosdiscovery.inc.php to autosdiscovery.inc.php.old - then upload the new php included in the zip above.

Let us know if that works.
Former Nagios Employee
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Re: Auto Discovery Job Issues

Post by stephen.chontofalsky »

It says I am not authorized to read that post. Can you copy+paste the info within it?

Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Auto Discovery Job Issues

Post by rkennedy »

Ah, my bad - I didn't realize. Here's what @joslson originally wrote -

I'd like you to backup your old files and try using the ones I've attached to this post.

Code: Select all

mv /usr/local/nagiosxi/html/config/monitoringwizard.php /usr/local/nagiosxi/html/config/monitoringwizard.php.back
mv /usr/local/nagiosxi/html/includes/configwizards/autodiscovery/autodiscovery.inc.php /usr/local/nagiosxi/html/includes/configwizards/autodiscovery/autodiscovery.inc.php.old
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Re: Auto Discovery Job Issues

Post by stephen.chontofalsky »

Just tried this fix (using WinSCP) and I didn't have any luck. The auto-discovery itself still runs fine. I deleted the old discovery jobs and created a new one. It finds devices (this time only 2 however, as opposed to the ~150 it found before, and one of them is our router) but is unable to display them, or anything, on the next step.

I should also mention I restarted the nagios service from both the web portal and the vmware image itself. No change.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Auto Discovery Job Issues

Post by rkennedy »

What OS are you running, and also - what version of the Auto-Discovery wizard are you using? (Admin -> Config Wizards)
Former Nagios Employee
stephen.chontofalsky
Posts: 11
Joined: Wed Feb 10, 2016 3:25 pm

Re: Auto Discovery Job Issues

Post by stephen.chontofalsky »

I'm running Windows 7 64-bit and my Auto Discovery Wizard is version 1.4.0
Locked