Auto-discovery keeps running, never completes.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
psanchez
Posts: 23
Joined: Wed Oct 17, 2012 12:14 pm

Auto-discovery keeps running, never completes.

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto-discovery keeps running, never completes.

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
psanchez
Posts: 23
Joined: Wed Oct 17, 2012 12:14 pm

Re: Auto-discovery keeps running, never completes.

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Auto-discovery keeps running, never completes.

Post 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
psanchez
Posts: 23
Joined: Wed Oct 17, 2012 12:14 pm

Re: Auto-discovery keeps running, never completes.

Post by psanchez »

I have attached a screen shot of System Status...this is our most used server.
xi.PNG
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Auto-discovery keeps running, never completes.

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Auto-discovery keeps running, never completes.

Post 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.
Locked