2012 R1.6 : apply configuration doesn't work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

2012 R1.6 : apply configuration doesn't work

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

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

Post by scottwilkerson »

This is possibly related to the following wiki
http://support.nagios.com/wiki/index.ph ... _Completes
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

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

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

Post 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
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked