Nagios takes long to apply configurations.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pratimeh
Posts: 8
Joined: Wed Apr 18, 2018 4:57 am

Nagios takes long to apply configurations.

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

Re: Nagios takes long to apply configurations.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
pratimeh
Posts: 8
Joined: Wed Apr 18, 2018 4:57 am

Re: Nagios takes long to apply configurations.

Post by pratimeh »

Nagios version: Nagios XI 5.4.13
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios takes long to apply configurations.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
pratimeh
Posts: 8
Joined: Wed Apr 18, 2018 4:57 am

Re: Nagios takes long to apply configurations.

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

Re: Nagios takes long to apply configurations.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
pratimeh
Posts: 8
Joined: Wed Apr 18, 2018 4:57 am

Re: Nagios takes long to apply configurations.

Post by pratimeh »

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

Re: Nagios takes long to apply configurations.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
pratimeh
Posts: 8
Joined: Wed Apr 18, 2018 4:57 am

Re: Nagios takes long to apply configurations.

Post by pratimeh »

Takes close to 3 minutes when applying some configuration.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios takes long to apply configurations.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked