Page 1 of 6

2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 04, 2013 3:43 am
by Frédéric GRANAT
Hi,
I recently upgrade from 2012 R1.2 R1.6 and now when I launch apply configuration it never ends.
Please help me.

Rgds,

Frederic

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 04, 2013 8:25 am
by scottwilkerson
This is possibly related to the following wiki
http://support.nagios.com/wiki/index.ph ... _Completes

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 04, 2013 9:57 am
by Frédéric GRANAT
Hi,
Sorry but the wiki doesn't help me to solve my problem (I restarted my server and increased the memory allocated in php.ini).
Could you please tell me where is located the logi file of the upgrade ?

Rgds,

Frederic.

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 04, 2013 10:46 am
by slansing
What do you mean by you restarted the server, was it a safe complete shutdown and reboot? Or a hard shutdown.

The install.log should be located here:

Code: Select all

/tmp/nagiosxi/install.log
Have you noticed any other issues within the interface other than the apply configuration issue? Please also post a tail of your error_log:

Code: Select all

tail -50 /var/log/httpd/error_log

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 05, 2013 9:47 am
by Frédéric GRANAT
Hi,
What do you mean by you restarted the server, was it a safe complete shutdown and reboot? Or a hard shutdown.
=> I launched "Shutdown guest" on VMware VCenter VSphere 5.0

The install.log should be located here:
=> There's no install.log in /tmp/nagiosxi/

Please find attached the tail of the error log (ran after "apply configuration").

Rgds,

Frederic

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 05, 2013 11:15 am
by sreinhardt
For future reference, you should never use VMware or ACPI shutdown commands as it may corrupt the various databases, as well as potentially lock aspects of Nagios from starting again. Running "sudo shutdown -h now" is a much safer way to stop the machine, as it allows for all services and programs to stop gracefully, opposed to forcing off.

As for the error log, unfortuantly nothing in there is indicating what the issue is. The error present, really should be a warning, and does not cause issues within the PHP interface. You most likely do not have an install.log as I would guess this is from our virtual machine. Opposed to just increasing memory limits in php.ini, did you also increase the max_input and max_execution times? Can you post the output from this command? "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Thu Mar 07, 2013 2:51 am
by Frédéric GRANAT
Hi,
Increasing of max_input and max_execution times (and restart httpd service) doesn't change anything.

Here's the end of the command you asked me to launch :

Code: Select all

Warning: Duplicate definition found for service 'Drives : Disk Usage' on host 'W2K-TEST02.cg.ahp' (config file '/usr/local/nagios/etc/services/W2K-TEST02.cg.ahp.cfg', starting on line 21)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 539 services.
Checking hosts...
        Checked 218 hosts.
Checking host groups...
        Checked 6 host groups.
Checking service groups...
        Checked 7 service groups.
Checking contacts...
        Checked 4 contacts.
Checking contact groups...
        Checked 3 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 137 commands.
Checking time periods...
        Checked 10 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Thu Mar 07, 2013 11:05 am
by sreinhardt
Since the last time you applied configuration, have you put any configs into /usr/local/nagios/etc/import? or added a bunch of hosts and services? You've got at least one duplicate defined, however that should definitely not cause this kind of delay.

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Fri Mar 08, 2013 2:38 am
by Frédéric GRANAT
Hi,
have you put any configs into /usr/local/nagios/etc/import?
=> No
or added a bunch of hosts and services?
=> several services (but I don't remember which)

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Fri Mar 08, 2013 11:46 am
by abrist
Do a running tail on the xi command subsystem log and then try to apply configuration once again. Post the output in code wraps:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log