Page 1 of 2

Nagios takes long to apply configurations.

Posted: Thu Jun 21, 2018 12:37 am
by pratimeh
We have noticed that Nagios XI takes really long to apply changes. Our environment has two workers using gearmon and two masters so please help rectify this.

Re: Nagios takes long to apply configurations.

Posted: Thu Jun 21, 2018 8:40 am
by scottwilkerson
This can happen quite often in setups that utilize gearman because the nagios service tries to wait for the checks to return from the gearman process which can take over a minute, and that is added to the normal apply configuration time.

If your Apply Configuration is taking longer than that, please reply with your Nagios XI version, and a copy of your /etc/init.d/nagios file

Re: Nagios takes long to apply configurations.

Posted: Thu Jun 21, 2018 9:08 am
by pratimeh
Nagios version: Nagios XI 5.4.13

Re: Nagios takes long to apply configurations.

Posted: Thu Jun 21, 2018 10:25 am
by scottwilkerson
how long does the apply configuration normally take to complete?

What is the output of the following

Code: Select all

ps -ef|grep nagios.cfg

Re: Nagios takes long to apply configurations.

Posted: Thu Jun 21, 2018 11:13 pm
by pratimeh
Here you go:
[root@nagmonm102 ~]# ps -ef | grep nagios.cfg
root 16760 16253 0 00:11 pts/0 00:00:00 grep --color=auto nagios.cfg
nagios 25586 1 0 Jun21 ? 00:07:52 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 25694 25586 0 Jun21 ? 00:00:04 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Also these nagios servers take real long to ssh onto maybe upto 2 minutes to provide a password prompt.

Re: Nagios takes long to apply configurations.

Posted: Fri Jun 22, 2018 8:16 am
by scottwilkerson
pratimeh wrote:Also these nagios servers take real long to ssh onto maybe upto 2 minutes to provide a password prompt.
That sounds like a problem of an overloaded system.

Can you send me your system profile.zip from Admin -> System Profile

Re: Nagios takes long to apply configurations.

Posted: Fri Jun 22, 2018 10:25 pm
by pratimeh
Have attached as asked.

Re: Nagios takes long to apply configurations.

Posted: Mon Jun 25, 2018 8:15 am
by scottwilkerson
scottwilkerson wrote:how long does the apply configuration normally take to complete?
The profile looks ok, I never got an answer to the above question

Re: Nagios takes long to apply configurations.

Posted: Mon Jun 25, 2018 11:01 pm
by pratimeh
Takes close to 3 minutes when applying some configuration.

Re: Nagios takes long to apply configurations.

Posted: Tue Jun 26, 2018 9:06 am
by scottwilkerson
Can you run the following and post the output

Code: Select all

 time /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
also note if it stays on a specific command for a long period of time

thanks