Page 1 of 1

NagiosXI Applying Configuration taking a long time

Posted: Thu Apr 03, 2014 11:15 pm
by mlopez
Hi all,
I was wondering if there would be a way to speed up the "Applying Configuration". I am running the newest version of Nagios but in a large scale installation. I have 1,000 hosts and 50,000 services.

System load: at 40% when applying / ~30% when not applying.
RAM: 1.3GIG out of 4GIG allocated.

I have also attached a screenshot of when applying.

I've also did the following to php.ini:
max_execution_time = 440
max_input_time = 440
memory_limit = 128M
max_input_vars = 100000


Any help would be greatly appreciated.
Sincerely,
Michael

Re: NagiosXI Applying Configuration taking a long time

Posted: Fri Apr 04, 2014 8:59 am
by tmcdonald
Have you implemented a ramdisk or offloaded the database?

A ramdisk will help speed up your disk IO because instead of writing to a traditional disk, you set aside a chunk of your RAM to act as a fast-access disk. You would definitely want to add more RAM to that machine, probably bumping it up to 8GB. That would be a good idea anyway with an installation as large as yours.

http://assets.nagios.com/downloads/nagi ... giosXI.pdf

Offloading the db will also help because instead of your Nagios server spending CPU time, memory, and disk IO, it can just send the db queries over the wire and let another server take care of it.

http://assets.nagios.com/downloads/nagi ... Server.pdf

This will help not only your apply config time, but the server's performance overall. Also, when 2014 comes around there will be some performance enhancements in XI, and Core 4 will be included which has been majorly overhauled as well.

Re: NagiosXI Applying Configuration taking a long time

Posted: Fri Apr 04, 2014 1:36 pm
by mlopez
Hi TMC,
Thanks again, I will implement the changes this week. You may close this post :)