Page 1 of 1

Slowness in NagiosXI

Posted: Tue Apr 25, 2017 1:19 am
by reincarne
Hi,
We recently moved all our old checks from Nagios core to Nagios XI.
We are experiencing very slow performances, so slow that we almost unable to work with it.
We have about 30,000 service checks and about 1400 hosts in Nagios.

Current machine:
4 cores
15 GB RAM

We have few issues:
1. The apply configuration process takes a lot of time, I mean the restart might be quick, but anytime we do apply configuration, Nagios reloads all the configuration from the beginning, which makes it work very hard and takes time until all the services are loaded. Is there a way to force Nagios to reload only the delta which was changed?

2. The load on the machine is about 40-50 especially starting yesterday - what could cause it? We reviewed the performances documentation and did the suggested changes, however nothing helped.
P.S - the two processes which are killing the CPU are ndo2db & mysqld.

Will upgrading the machine resolve the issue? What can you suggest?

Re: Slowness in NagiosXI

Posted: Tue Apr 25, 2017 10:18 am
by mcapra
That's an awful lot of checks. You may want to offload the MySQL database to a separate machine for starters. This documentation describes the process:
https://assets.nagios.com/downloads/nag ... Server.pdf

Re: Slowness in NagiosXI

Posted: Sun Apr 30, 2017 1:27 am
by reincarne
mcapra wrote:That's an awful lot of checks. You may want to offload the MySQL database to a separate machine for starters. This documentation describes the process:
https://assets.nagios.com/downloads/nag ... Server.pdf

We will do it later, for now we increased the machine size (CPU & Memory).

I'm interested to know if there is a way to force nagios NOT to load all the configurations upon each apply configuration process?

Re: Slowness in NagiosXI

Posted: Mon May 01, 2017 9:17 am
by dwhitfield
reincarne wrote: I'm interested to know if there is a way to force nagios NOT to load all the configurations upon each apply configuration process?
No, but in XI 5.5
Performance improvements to apply configuration scripts
https://www.nagios.com/roadmaps/

Depending on the upgrade process in your organization, it might make sense to wait until 5.5 to upgrade. What version are you currently running? We can take a look at the change logs and see if there are any specific database improvements since your version.

Aside from the off-loading the DB document, there are a lot of suggestions at https://assets.nagios.com/downloads/nag ... ios-XI.pdf. There's a link to the off-loading the DB document in there, as well as a link to https://assets.nagios.com/downloads/gen ... utions.pdf but given your past use of Core, I think it worth giving you this one directly.