Page 1 of 1
Auto-Discovery job does not return any services
Posted: Tue Sep 10, 2019 11:56 am
by stf_792
Nagios XI v 5.63 / 5.65
Auto-discovery v 1.4.2
When I run new Auto-Discovery scan, it does not detect any services
new.png
I tried with custom ports empty and with 1-1000 value - no difference.
When I look on results from older scans still saved (from 2016) I see that all services are detected and listed
old.png
Is there any tricks to detect services on newer versions of XI when running auto-discovery wizard?
Thank you
Re: Auto-Discovery job does not return any services
Posted: Tue Sep 10, 2019 1:56 pm
by benjaminsmith
Hi,
So it was working in 5.63 and then stopped when you upgraded to 5.65. Is this correct? Let's check the permission on the auto discovery folder and post the output to the thread:
Code: Select all
cd /usr/local/nagiosxi/html/includes/components/autodiscovery
ls -l
Can your run the following tail command and then attempt to run the Auto-Discovery and post the output. Thanks.
Re: Auto-Discovery job does not return any services
Posted: Fri Sep 13, 2019 8:38 am
by stf_792
It does not work on either 5.63 (Production) or 5.65 (Test) systems.
Test systems has a job from 2016; results of that job show services.
cd /usr/local/nagiosxi/html/includes/components/autodiscovery
ls -l
Code: Select all
-rw-r--r--. 1 nagios nagios 12800 Aug 27 13:15 autodiscovery.inc.php
-rw-r--r--. 1 nagios nagios 2329 Aug 27 13:15 CHANGES.TXT
drwxr-xr-x. 2 nagios nagios 30 Feb 5 2016 images
-rw-r--r--. 1 nagios nagios 39584 Aug 27 13:15 index.php
drwxrwxrw-. 2 nagios nagios 4096 Sep 10 11:45 jobs
-rw-r--r--. 1 nagios nagios 1381 Nov 5 2018 sanity.sh
drwxr-xr-x. 2 nagios nagios 74 Feb 5 2016 scripts
tail command did not produce any errors.
also this post describe the same problem (I do not know how to check nmap output)
https://support.nagios.com/forum/viewto ... =6&t=35396
suggestion to update nmap probably not going to work as my version is
UPDATE:
Removing Exclusions solves the problem of detecting services. But the issue is that I have to use exclusions for my scans.
Re: Auto-Discovery job does not return any services
Posted: Fri Sep 13, 2019 3:34 pm
by benjaminsmith
Hello,
Please run the following command as root and then try running the Autodiscovery again with exclusions and let me know if it resolves the issue.
Code: Select all
chmod g+w /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs
If it fails again, can you post a screen shot for us to review. Thanks.