High Load CPU

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: High Load CPU

Post by asardouk »

Hi,

The two first request worked correctly. results are in attachment.

The last request is make an ERROR. The table "xi_eventqueue" does not exist.
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: High Load CPU

Post by ssax »

First, take an XI backup:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then, please run this command and it should resolve the issue for you:
- NOTE: Running this command will wipe out all data from the Home > Event Log OR Reports > Event Log report (this is the only information affected, those 2 locations are the same report), make sure you have known-good XI backups

Code: Select all

echo "truncate table xi_events; truncate table xi_meta;" | mysql -uroot -pnagiosxi nagiosxi
Let us know the results.

Thank you
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: High Load CPU

Post by asardouk »

i executed the command, no error.

the load goes up to arount 20 this afternoon and then dropped between 4 and 6 since i executed the command. but it still a high cpu usage.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: High Load CPU

Post by ssax »

What is eating up the cpu?

Code: Select all

top
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: High Load CPU

Post by asardouk »

ssax wrote:What is eating up the cpu?

Code: Select all

top
same as first post.

We're going to migrate Nagios to a new server with more powerfull CPU and SSD. I hope that it's just an issue with VM performance.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: High Load CPU

Post by rkennedy »

It's possible - it sounds like it is one process spiking for a bit and then cooling down. Are you monitoring a lot of devices using SNMP by any chance?

Let us know how the new machine goes.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: High Load CPU

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: High Load CPU

Post by asardouk »

rkennedy wrote:It's possible - it sounds like it is one process spiking for a bit and then cooling down. Are you monitoring a lot of devices using SNMP by any chance?

Let us know how the new machine goes.

Hello,

it took me some times to get back to the Nagios Machine, I've optimized snmp requests in one of my scripts. And the Load drop down to an average of 2.30 . I think that the load is normal now, Can you confirm ?

My script works good with few hosts and when it's exetuted many time, the load grow up like an expo function :P. I've figured out how to correct it :D
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: High Load CPU

Post by ssax »

Yeah, that's a good load value, nice job on the correction! Are we okay to mark this as resolved and lock the topic?
Locked