Page 1 of 1

Auto-discovery keeps running, never completes.

Posted: Fri May 01, 2015 2:44 pm
by psanchez
I have setup auto-discovery and a few subnets, on 3 differenct XI servers (different locations). Looks like the first initial scan completed, but the next scheduled time it just never finishes.

I have deleted the task and recreated them (more than twice), same results...scan never finishes (after 3 days).
I have restarted Nagios and rebooted server, same results...scan nerver finishes.

After recreating the task, there are no more files under jobs directory.

Code: Select all

ls -alh /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/
total 8.0K
drwxrws--- 2 nagios nagios 4.0K Apr 29 12:33 .
drwxr-x--- 5 nagios nagios 4.0K Aug 14  2014 ..
First time there where 2 files per task and 3 when completed, but later on only 2 files per task showed...but one will be empty (zero size)

similar issue as:
(Auto-Discovery status keeps running ...)
http://support.nagios.com/forum/viewtop ... =6&t=27017


Looks like I have latest Auto-Discovery files installed...the ones on Nagios website seem older.

XI Version: Nagios XI 2014R2.7
Component: Auto-Discovery
Version: 2.0.6
Date: 12/08/2014
Author: Nagios Enterprises, LLC

Any Ideas?

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 9:35 am
by lmiltchev
Can you show us an example of what you put in the "Scan Target" field? Also, what is the version of the Auto-Discovery wizard that you are currently using?

Admin->Manage Config Wizards

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 1:40 pm
by psanchez
Auto-Discovery Version: 1.3.1

I'm scanning entire subnets (with different mask each)...in all 3 locations.

x.x.x.y/22
x.x.x.y/23
x.x.x.y/24
x.x.x.y/25
x.x.x.y/27


...so turns out, this morning all scans finished...I tried multiple things and waited for over 6 days before and nothing work, now that I asked for help the scan decided to complete.
Since these are Saturday night scan, I'll have to wait until the weekend to see if results change.

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 2:10 pm
by ssax
Let us know if you see any changes, it will take a while to scan an entire subnet depending on how many hosts it's scanning.

Our developers are working on improvements that have made it much faster but it won't be released until the next major update, I cannot give an actual ETA though.

How is your server doing on resources? Post a screenshot of Admin > System Information > System Status

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 2:50 pm
by psanchez
I have attached a screen shot of System Status...this is our most used server.
xi.PNG

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 2:55 pm
by abrist
Were any changes made to dns is your environment? I have seen these scan take a serious amount of time if there are lookup issues in your environment.

Re: Auto-discovery keeps running, never completes.

Posted: Mon May 04, 2015 2:57 pm
by jdalrymple
In addition it might service you well to

Code: Select all

ps -ef | grep nmap
to verify that you have an expected number of nmaps running. If you have 0 running that's bad. If you have 200 running that's bad. If you have ~2x as many running as you have auto-discovery jobs running, that's expected.