New Installation Of Nagios XI Autodiscovery status continous

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
solastek
Posts: 15
Joined: Thu Nov 19, 2015 5:49 am

New Installation Of Nagios XI Autodiscovery status continous

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: New Installation Of Nagios XI Autodiscovery status conti

Post by hsmith »

What is the output of a ls -l /usr/local/nagiosxi/html/includes/components/autodiscovery/ command?
Former Nagios Employee.
me.
solastek
Posts: 15
Joined: Thu Nov 19, 2015 5:49 am

Re: New Installation Of Nagios XI Autodiscovery status conti

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: New Installation Of Nagios XI Autodiscovery status conti

Post 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 
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
solastek
Posts: 15
Joined: Thu Nov 19, 2015 5:49 am

Re: New Installation Of Nagios XI Autodiscovery status conti

Post by solastek »

The Autodiscovery works now.
Thanks.
I have got another problem after this. I shall open a new Querry.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New Installation Of Nagios XI Autodiscovery status conti

Post by scottwilkerson »

Glad to hear it's working!

Yes, please open a different query. Thanks!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked