NagiosXI consuming a large amount of CPU

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

NagiosXI consuming a large amount of CPU

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by Frédéric GRANAT on Mon Dec 10, 2012 10:30 am, edited 1 time in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI consuming a large amount of CPU

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI consuming a large amount of CPU

Post by Frédéric GRANAT »

Hi, I add the file
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI consuming a large amount of CPU

Post by scottwilkerson »

Can you run the following and send back the created cpu.txt

Code: Select all

ps aux --sort -%cpu > cpu.txt
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI consuming a large amount of CPU

Post by Frédéric GRANAT »

Here it is :

Removed
Last edited by scottwilkerson on Mon Dec 10, 2012 2:29 pm, edited 1 time in total.
Reason: Removed - contained sensitive data
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI consuming a large amount of CPU

Post by mguthrie »

How many hosts+services are you monitoring?

How many of those service checks are using the Vmware Wizard (check_esx3.pl plugin)?
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI consuming a large amount of CPU

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI consuming a large amount of CPU

Post 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?
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI consuming a large amount of CPU

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI consuming a large amount of CPU

Post 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.
Locked