Nagios takes long to apply configurations.
Nagios takes long to apply configurations.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios takes long to apply configurations.
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
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.
Nagios version: Nagios XI 5.4.13
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios takes long to apply configurations.
how long does the apply configuration normally take to complete?
What is the output of the following
What is the output of the following
Code: Select all
ps -ef|grep nagios.cfg
Re: Nagios takes long to apply configurations.
Here you go:
Also these nagios servers take real long to ssh onto maybe upto 2 minutes to provide a password prompt.[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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios takes long to apply configurations.
That sounds like a problem of an overloaded system.pratimeh wrote:Also these nagios servers take real long to ssh onto maybe upto 2 minutes to provide a password prompt.
Can you send me your system profile.zip from Admin -> System Profile
Re: Nagios takes long to apply configurations.
Have attached as asked.
Last edited by scottwilkerson on Mon Jun 25, 2018 8:14 am, edited 1 time in total.
Reason: remove zip to not expose sensitive data
Reason: remove zip to not expose sensitive data
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios takes long to apply configurations.
The profile looks ok, I never got an answer to the above questionscottwilkerson wrote:how long does the apply configuration normally take to complete?
Re: Nagios takes long to apply configurations.
Takes close to 3 minutes when applying some configuration.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios takes long to apply configurations.
Can you run the following and post the output
also note if it stays on a specific command for a long period of time
thanks
Code: Select all
time /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
thanks