Auto Discovery does not work and the patch will not install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

Auto Discovery does not work and the patch will not install

Post 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
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

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

Post 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!)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

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

Post 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/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

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

Post by nottheadmin »

Thanks for that, I have done everything mentioned in that link, seems ok now.
Locked