Page 1 of 3
Auto Discovery Job Issues
Posted: Fri Feb 19, 2016 9:50 am
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
Re: Auto Discovery Job Issues
Posted: Fri Feb 19, 2016 10:39 am
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)
Re: Auto Discovery Job Issues
Posted: Fri Feb 19, 2016 1:01 pm
by stephen.chontofalsky
Sorry to ask such a basic question, but how do I view those Apache log files?
Re: Auto Discovery Job Issues
Posted: Fri Feb 19, 2016 1:16 pm
by stephen.chontofalsky
Re: Auto Discovery Job Issues
Posted: Fri Feb 19, 2016 3:14 pm
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.
Re: Auto Discovery Job Issues
Posted: Mon Feb 22, 2016 9:10 am
by stephen.chontofalsky
It says I am not authorized to read that post. Can you copy+paste the info within it?
Thanks!
Re: Auto Discovery Job Issues
Posted: Mon Feb 22, 2016 10:40 am
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
Re: Auto Discovery Job Issues
Posted: Mon Feb 22, 2016 12:55 pm
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.
Re: Auto Discovery Job Issues
Posted: Mon Feb 22, 2016 1:45 pm
by rkennedy
What OS are you running, and also - what version of the Auto-Discovery wizard are you using? (Admin -> Config Wizards)
Re: Auto Discovery Job Issues
Posted: Mon Feb 22, 2016 3:06 pm
by stephen.chontofalsky
I'm running Windows 7 64-bit and my Auto Discovery Wizard is version 1.4.0