Page 1 of 2

NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 10:11 am
by Frédéric GRANAT
Hi,
We allocated 2 vCPU 3,2 GHZ to NagiosXI.
The server is consuming a large amount of these ressources (please see the attached file).
Is there a way to tune Nagiosxi ?

rgds,

Frederic

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 10:18 am
by lmiltchev
I don't see the attached file. Could you, please, try attaching it again?

You can find some information on "fine tuning" nagios here:

http://assets.nagios.com/downloads/nagi ... p#boosting

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 10:31 am
by Frédéric GRANAT
Hi, I add the file

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 10:51 am
by scottwilkerson
Can you run the following and send back the created cpu.txt

Code: Select all

ps aux --sort -%cpu > cpu.txt

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:08 am
by Frédéric GRANAT
Here it is :

Removed

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:24 am
by mguthrie
How many hosts+services are you monitoring?

How many of those service checks are using the Vmware Wizard (check_esx3.pl plugin)?

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:31 am
by Frédéric GRANAT
Hi,
I monitor 216 host and 589 services
13 hosts checking services with check_esx3.pl (6 services / hosts).

Rgds,

Frederic

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:35 am
by mguthrie
Both check_esx3.pl and the wmi_plus plugins use more CPU than a lot of other plugins. It could simply be the higher overhead of these plugins. There are a few ways this could be resolved, the simplest would be to increase the check interval of these checks to spread them out a little bit more.

When you run "top" and sort by CPU time, does it show mysqld as #1 and httpd as #2?

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:43 am
by Frédéric GRANAT
Most of the time it shows check_esx3.pl on the top
Thanks, I'm going to tune esx checks.

Rgds,

Frederic

Re: NagiosXI consuming a large amount of CPU

Posted: Mon Dec 10, 2012 11:59 am
by mguthrie
Yeah, I would suggest only using the check_esx checks for the ESX servers themselves, for any client VM's use agents for the best performance.