Page 1 of 1

New Installation Of Nagios XI Autodiscovery status continous

Posted: Tue Nov 24, 2015 8:32 am
by solastek
Hello I have installed the nagiosxi-5.2.2-64.ova on vmware esxi. On trying the autodiscovery feature the status shows continous and does not show discovered devices.when I run grep "COMPONENT_VERSION" /usr/local/nagiosxi/html/includes/components/autodiscovery/autodiscovery.inc.php the output is " COMPONENT_VERSION => '2.2.3',".
Request your help to resolve the issue.

The output of errorlog is as below
touch: cannot touch `/usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/a6mag0.watch': Permission denied
sh: /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/a6mag0.out: Permission denied
[Tue Nov 24 17:10:28 2015] [error] [client 172.16.24.10] PHP Warning: filemtime(): stat failed for /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/a6mag0.out in /usr/local/nagiosxi/html/includes/components/autodiscovery/index.php on line 280, referer: http://172.16.25.82/nagiosxi/includes/c ... ode=newjob
[Tue Nov 24 17:16:04 2015] [error] [client 172.16.24.10] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-tools.inc.php on line 33, referer: http://172.16.25.82/nagiosxi/config/?xi ... wizard.php
[Tue Nov 24 17:16:04 2015] [error] [client 172.16.24.10] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-tools.inc.php on line 135, referer: http://172.16.25.82/nagiosxi/config/?xi ... wizard.php
[Tue Nov 24 17:24:52 2015] [error] [client 172.16.24.10] PHP Warning: filemtime(): stat failed for /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs/a6mag0.out in /usr/local/nagiosxi/html/includes/components/autodiscovery/index.php on line 280, referer: http://172.16.25.82/nagiosxi/config/?xi ... wizard.php

Re: New Installation Of Nagios XI Autodiscovery status conti

Posted: Tue Nov 24, 2015 3:57 pm
by hsmith
What is the output of a ls -l /usr/local/nagiosxi/html/includes/components/autodiscovery/ command?

Re: New Installation Of Nagios XI Autodiscovery status conti

Posted: Thu Nov 26, 2015 6:25 am
by solastek
The Output is of ls -l /usr/local/nagiosxi/html/includes/components/autodiscovery/
total 140
-rw-r--r-- 1 nagios nagios 29782 Sep 16 10:19 1autodiscovery.inc.php
-rw-r--r-- 1 root root 12514 Nov 24 18:11 autodiscovery.inc.php
-rw-r--r-- 1 nagios nagios 2329 Nov 13 00:46 CHANGES.TXT
-rw-r--r-- 1 root root 30811 Nov 24 19:01 err.txt
drwxr-xr-x 2 nagios nagios 4096 Nov 13 00:46 images
-rw-r--r-- 1 nagios nagios 37897 Nov 13 00:46 index.php
drwxr-xr-x 2 nagios nagios 4096 Nov 13 00:46 jobs
-rw-r--r-- 1 nagios nagios 1381 Nov 13 00:46 sanity.sh
drwxr-xr-x 2 nagios nagios 4096 Nov 13 00:46 scripts

Re: New Installation Of Nagios XI Autodiscovery status conti

Posted: Thu Nov 26, 2015 9:13 pm
by Box293
There is a bug in 5.2.2 that doesn't install the component correctly. The following steps grabs it from the 5.2.0 installer and installs it.

Try the following:

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: New Installation Of Nagios XI Autodiscovery status conti

Posted: Wed Dec 02, 2015 1:46 am
by solastek
The Autodiscovery works now.
Thanks.
I have got another problem after this. I shall open a new Querry.

Re: New Installation Of Nagios XI Autodiscovery status conti

Posted: Wed Dec 02, 2015 10:06 am
by scottwilkerson
Glad to hear it's working!

Yes, please open a different query. Thanks!