Page 1 of 2

Auto Discovery does not work and the patch will not install

Posted: Thu Feb 13, 2014 8:32 am
by nottheadmin
Hi, setting up a new installation using the Vsphere image Nagios XI 2012R2.8c

Auto discovery is not working, it just does not finish (or even start judging from the lack of nmap running in ps)

I note that this was mentioned in this locked thread - http://support.nagios.com/forum/viewtop ... =6&t=25488

The suggested fix (http://support.nagios.com/forum/downloa ... hp?id=4491 does not install on my server.

I see "Component installation failed"

I am aware that there is a R2.9c available now but I have only just managed to get this one installed (It took 6 weeks to get it approved in this damn corporate environment.

Could somebody please help me to get this working so that I can show this as a proof of concept in order to persuade the accountants to purchase a license?

Many thanks :)
M

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 8:33 am
by nottheadmin
Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 10:28 am
by scottwilkerson
If you are getting "Component installation failed" you must have a problem with the permissions on key directories.

For the time being you can unzip that zip file and place the contents in

Code: Select all

/usr/local/nagiosxi/html/includes/components/autodiscovery/

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 10:39 am
by nottheadmin
Thanks Scot, I have done that, unsure what the permissions problem might be

drwxr-xr-x 5 nagios nagios 4096 Feb 13 13:17 autodiscovery

I can see nmap running now so guess it's working, i'll update this tomorrow when it's finished (if!)

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 10:48 am
by scottwilkerson
It could be multiple things, including apache not being part of the nagios group

Code: Select all

cat /etc/group|grep apache
or the temp directory

Code: Select all

ls -ld /usr/local/nagiosxi/html/includes/components/
which should be

Code: Select all

drwsrwsr-x 4 nagios nagios 12288 Feb 13 09:22 /usr/local/nagiosxi/tmp/

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 11:10 am
by nottheadmin

Code: Select all

[root@localhost components]# cat /etc/group | grep apache
apache:x:48:
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache

Code: Select all

ls -ld /usr/local/nagiosxi/html/includes/components/
drwxr-xr-x 55 nagios nagios 4096 Jan 20 15:27 /usr/local/nagiosxi/html/includes/components/

Re: Auto Discovery does not work and the patch will not inst

Posted: Thu Feb 13, 2014 1:47 pm
by lmiltchev
The permissions look fine. I am sorry for asking this, but are you sure that you tried to install the component by going to: Admin->Manage Components? You didn't go to: Admin->Manage Config Wizards, and tried to reinstall the wizard, did you?

Try reinstalling the component one more time, then run the following command in the CLI, and show the output:

Code: Select all

tail -50 /var/log/httpd/error_log

Re: Auto Discovery does not work and the patch will not inst

Posted: Fri Feb 14, 2014 5:43 am
by nottheadmin
Hey, Yes I used Admin->Manage Components. Unzipping it into the directory has worked now though and the auto discovery job completed.

I'm working through a whole new set of problems now! But here is the error log.

I'll add NTP to the list of things to do as well.

I cant post the log due to it having too many URL's in it, however, the last 50 lines are filled with this message regarding time keeping

[Fri Feb 14 10:33:22 2014] [error] [client 62.179.96.1] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-servicestatus.inc.php on line 637, referer: http://10.99.34.100/nagiosxi/includes/c ... w=services
[Fri Feb 14 10:33:22 2014] [error] [client 62.179.96.1] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 409, referer: http://10.99.34.100/nagiosxi/includes/c ... w=services

Re: Auto Discovery does not work and the patch will not inst

Posted: Fri Feb 14, 2014 11:53 am
by slansing
Looks like apache is warning you that you need to set your timezone settings, http://assets.nagios.com/downloads/nagi ... m_Time.pdf

Re: Auto Discovery does not work and the patch will not inst

Posted: Tue Feb 18, 2014 11:03 am
by nottheadmin
Thanks for that, I have done everything mentioned in that link, seems ok now.