Nagios XI 5.4.4 Appluconfiguration taking forever

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Nagios XI 5.4.4 Appluconfiguration taking forever

Post by emartine »

I see this in the log
tail -F /usr/local/nagiosxi/var/cmdsubsys.log
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...

PROCESSED 0 COMMANDS
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...

PROCESSED 0 COMMANDS
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...

This goes on for a good 10 minute and eventually the configuration applies.

............................................................
PROCESSED 0 COMMANDS
.......................................................PROCESSING COMMAND ID 26361...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: https://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2017-08-25 13:09:57-- https://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhost’s certificate, issued by “/C=US/ST=MI/L=Ann Arbor/O=Internet2/OU=InCommon/CN=InCommon RSA Server CA”:
Unable to locally verify the issuer’s authority.
WARNING: no certificate subject alternative name matches
requested host name “localhost”.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

0K .......... .......... .......... ........ 1.25M=0.03s

2017-08-25 13:09:57 (1.25 MB/s) - “nagiosql.login” saved [39040]

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=t<removed for security>LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: https://localhost/nagiosxi/includes/components/ccm/
Array
(
)

How can I make this apply quicker?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by dwhitfield »

To start off, edit /etc/php.ini and increase these values:
max_execution_time = 60
max_input_time = 60
memory_limit = 256


After making these changes you'll need to restart the httpd service: service httpd restart

If that does not resolve the issue, please attach your /etc/php.ini and PM me a profile. You can download the profile by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

You may also want to take a look at https://assets.nagios.com/downloads/nag ... ios-XI.pdf

UPDATE: profile shared with techs
Last edited by dwhitfield on Mon Aug 28, 2017 9:08 am, edited 1 time in total.
Reason: profile received
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by emartine »

Most of those settings were already in place. I sent you the profile via PM.

I was just told that over the weekend at around 5AM on Saturday there were a few hundred alerts sent out regarding servers going down.

All them were flapping notifications with the message:
Info: (host check orphaned, is the mod-gearman worker on queue host running?)

This is the second time this has happened. How can I keep this from happening again?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by dwhitfield »

This is probably unrelated to your original question, but what is the output of gearman_top? It seems like there is some sort of problem with mod-gearman.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by emartine »

gearman had to be restarted when that happened. Some issues have been occurring where contacts that were fine before are being reported as missing notification commands but they are not missing anything when we reviewed them through the interface. We had also received errors regarding a host being in an escalation group but it wasn't. Modifications were not being made when we were reviewing the items.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by emartine »

BTW gearman is still supported with 5.4.4 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by scottwilkerson »

emartine wrote:BTW gearman is still supported with 5.4.4 ?
Yes, as long as it was compiled with the nagios4 flag
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI 5.4.4 configuration taking forever

Post by emartine »

Any idea what might be causing gearman to do that?
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by tacolover101 »

what version of gearman are you running?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.4.4 Appluconfiguration taking forever

Post by tgriep »

To troubleshoot the Gearman messages, you would have to look in the gearman server log files and the remote worker files to see what happened.

You said that the settings in the /etc/php.ini were already increased, increase them again, by doubling them.

Code: Select all

max_execution_time = 60
max_input_time = 60
memory_limit = 256M
Add this line to the php.ini file.

Code: Select all

max_input_vars=5000
Then restart Apache by running

Code: Select all

service httpd restart
Do this change to server as well to give it more time to apply the config before restarting the nagios process.
https://support.nagios.com/kb/article/n ... anner.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked