Auto discovery failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
drighter
Posts: 5
Joined: Wed Jul 18, 2018 6:45 am

Auto discovery failure

Post by drighter »

autodiscovery never finishes and if we click cancel the job is deleted.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto discovery failure

Post by lmiltchev »

How long did you wait before canceling the job? Are you scanning a very large network? Does the auto-discovery work if you try to scan a single IP address? What were the options that you used when you run the auto-discovery, e.g. Schedule, OS Detection, Scan Delay, System DNS, and Custom Ports?

What is the version of Nagios XI that you are currently using? What is the version of the Auto-Discovery component, and the Auto-Discovery wizard that you are currently using?

Admin > System Extensions > Manage Components
Admin > System Extensions > Manage Config Wizards


Have you tried upgrading the components and wizards by clicking on the "Check for Updates" button?

Do you see any errors in the apache error log?

Code: Select all

tail -100 /var/log/httpd/error_log
If this is a timeout issue, you may need to increase the resources in the php.ini file. To learn how to do this, check our KB article on optimizing the PHP settings file:

https://support.nagios.com/kb/article.php?id=611
Be sure to check out our Knowledgebase for helpful articles and solutions!
drighter
Posts: 5
Joined: Wed Jul 18, 2018 6:45 am

Re: Auto discovery failure

Post by drighter »

Version 5.6.12

Auto Discovery Version: 2.2.6

Check for updates usually just hangs. We have to update from the shell.

No Apache errors.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto discovery failure

Post by lmiltchev »

How long did you wait before canceling the job? Are you scanning a very large network? Does the auto-discovery work if you try to scan a single IP address? What were the options that you used when you run the auto-discovery, e.g. Schedule, OS Detection, Scan Delay, System DNS, and Custom Ports?
Auto Discovery Version: 2.2.6
This is the version of the Auto-Discovery component. What is the version of the wizard?
Check for updates usually just hangs. We have to update from the shell.
Can you PM me your latest profile (Admin > System Config > System Profile > Download Profile), and the /etc/php.ini file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto discovery failure

Post by lmiltchev »

How long did you wait before canceling the job? Are you scanning a very large network? Does the auto-discovery work if you try to scan a single IP address? What were the options that you used when you run the auto-discovery, e.g. Schedule, OS Detection, Scan Delay, System DNS, and Custom Ports?

Run the following command and show the output:

Code: Select all

grep 'max_input_vars\|memory_limit\|max_execution_time\|max_input_time' /etc/php.ini
Be sure to check out our Knowledgebase for helpful articles and solutions!
drighter
Posts: 5
Joined: Wed Jul 18, 2018 6:45 am

Re: Auto discovery failure

Post by drighter »

; max_input_time
max_execution_time = 30
max_input_time = 60
; max_input_vars = 1000
memory_limit = 128M
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto discovery failure

Post by lmiltchev »

Can you please answer ALL of the questions below?
How long did you wait before canceling the job? Are you scanning a very large network? Does the auto-discovery work if you try to scan a single IP address? What were the options that you used when you run the auto-discovery, e.g. Schedule, OS Detection, Scan Delay, System DNS, and Custom Ports?
We are trying to recreate the issue in-house. It's impossible to test this unless you have all of the relevant information. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
drighter
Posts: 5
Joined: Wed Jul 18, 2018 6:45 am

Re: Auto discovery failure

Post by drighter »

I don’t know how long of a wait, I only check once a week. A single IP works just fine.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto discovery failure

Post by lmiltchev »

Please open a support ticket via our support center here:

https://support.nagios.com/tickets/

We may need to schedule a remote session in order to further troubleshoot this issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Auto discovery failure

Post by tgriep »

Please, login to the XI GUI and go to the Auto Discovery menu, get a screen capture of the Job showing what you have typed in the Scan Target: field.
On that same page, click on the Show Advanced Options link and show us what you have in the Scan Delay: field.

Lets say you are scanning a class b network with 65534 hosts and it takes 10 seconds per host.
The Autodiscovery would take over 7 and a half days to run.

Also, run this command as root and upload the /tmp/auto.tgz file to the post.

Code: Select all

tar cvfz /tmp/auto.tgz /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/*
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked