Page 1 of 1

Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 12:39 pm
by reinaldo.gomes
CentOS 6.7 Final
NagiosXI 5.2.2 (trial version - pre-configured VM)

Auto-discovery settings:
Scan target - 172.16.10.2/32
Frequency - One time
OS Detection - Off
Scan Delay - none
System DNS - Off

'nmap 172.16.10.2' returns valid result (host is up, ports x, y, z open).

I've waited for over 12 hours, but there's no status update, pretty much like in this topic:
https://support.nagios.com/forum/viewto ... 98#p159141

Except that I'm not running anything on schedule. Any clues?

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 1:24 pm
by hsmith
We have a bug report filed for this exact issue.

Can you run these commands and let me know what happens?

Code: Select all

cd /tmp
rm -rf nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.2.0.tar.gz
tar xzf xi-5.2.0.tar.gz
cp -R -n nagiosxi/nagiosxi/basedir/html/includes/components/autodiscovery/* /usr/local/nagiosxi/html/includes/components/autodiscovery/
cd /usr/local/nagiosxi/html/includes/components/autodiscovery/
./install.sh

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 2:07 pm
by reinaldo.gomes
It worked for that single IP. I'm testing now on a broader range, but it's taking a while to complete.

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 2:53 pm
by hsmith
It can take some time. A full scan of an IP range isn't always the quickest process. Additionally, there is a delay under the 'advanced options' that you can turn down. Some people need to adjust their delay so that their IDS doesn't have a fit seeing a network scan like that taking place :)

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 3:00 pm
by reinaldo.gomes
I see. What's the default delay value? 0?
The scan has finished on my /16 network, and shows the hosts as expected. Thanks for the hotfix.

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 3:04 pm
by hsmith
Glad that worked, /16 is 65536 IP addresses. When it is checking multiple things on each of them, doing DNS lookups, etc, it's not the quickest process. Are we all right to close this thread as this is resolved?

Edit: just noticed your default delay question. I'll get an answer and post back.

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 3:16 pm
by hsmith
The delay is indeed 0 by default.

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 3:32 pm
by reinaldo.gomes
Case closed. Thanks once again.

Re: Can't get the auto-discovery started

Posted: Thu Nov 19, 2015 3:42 pm
by hsmith
Happy to help.