Hi,
i have a big problem with my nagios xi server, the load average is too much high: CRITICAL - load average: 40.75, 39.76, 39.11
how can i try to decrease it?
Thanks !
High load average on xi
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: High load average on xi
Usually when it spikes that high there is some sort of database corruption. Can you post the output from running "top"?
http://assets.nagios.com/downloads/nagi ... tabase.pdf
http://assets.nagios.com/downloads/nagi ... tabase.pdf
-
- Posts: 13
- Joined: Wed Sep 19, 2012 1:55 am
Re: High load average on xi
I already o the repairing database action, it's work fine and it repair all the tables, it take me 1h for do that.mguthrie wrote:Usually when it spikes that high there is some sort of database corruption. Can you post the output from running "top"?
http://assets.nagios.com/downloads/nagi ... tabase.pdf
I have 3000 services and 65 hosts..
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: High load average on xi
How many CPU's does this server have? Did the database repair drop the load?
-
- Posts: 13
- Joined: Wed Sep 19, 2012 1:55 am
Re: High load average on xi
I have a VM CPU 2 cores and 4GB of RAM, the repair don^t drop the loadscottwilkerson wrote:How many CPU's does this server have? Did the database repair drop the load?

-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: High load average on xi
I think you are going to need to do a bit of investigating as to which processes are using the CPU on your system.
You are running with about 1/2 the resources recommended for that many hosts/services if you are checking them on a 5 minute interval
http://assets.nagios.com/downloads/nagi ... ements.pdf
If you would like you can PM me and I would be willing to do a short remote session to see if we can help uncover what is causing the load.
You are running with about 1/2 the resources recommended for that many hosts/services if you are checking them on a 5 minute interval
http://assets.nagios.com/downloads/nagi ... ements.pdf
If you would like you can PM me and I would be willing to do a short remote session to see if we can help uncover what is causing the load.
-
- Posts: 13
- Joined: Wed Sep 19, 2012 1:55 am
Re: High load average on xi
Ok, thanks so much for the support, one ask.. How i can watch which processes are using the CPU in my system?scottwilkerson wrote:I think you are going to need to do a bit of investigating as to which processes are using the CPU on your system.
You are running with about 1/2 the resources recommended for that many hosts/services if you are checking them on a 5 minute interval
http://assets.nagios.com/downloads/nagi ... ements.pdf
If you would like you can PM me and I would be willing to do a short remote session to see if we can help uncover what is causing the load.
Thanks!
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: High load average on xi
Run the following command:
Then press 'shift+f', and then 'l' to sort by CPU time. Go ahead and post a screenshot of what you're seeing.
I'm wondering if there's still corruption in the mysql DB even after the repair run. Try the following:
And then lets also make sure postgres is in good shape:
Code: Select all
top
I'm wondering if there's still corruption in the mysql DB even after the repair run. Try the following:
Code: Select all
service mysqld stop
myisamchk -r -f /var/lib/mysql/nagios/*.MYI
service mysqld start
And then lets also make sure postgres is in good shape:
Code: Select all
psql nagiosxi nagiosxi
vacuum;
vacuum analyze;
vaccum full;
\q
psql postgres postgres
vacuum;
vacuum analyze;
vaccum full;
\q
Last edited by mguthrie on Thu Sep 20, 2012 9:28 am, edited 1 time in total.
Reason: More info
Reason: More info
-
- Posts: 13
- Joined: Wed Sep 19, 2012 1:55 am
Re: High load average on xi
Thanks so much for the answers, now i take the screenshot..mguthrie wrote:Run the following command:
Then press 'shift+f', and then 'l' to sort by CPU time. Go ahead and post a screenshot of what you're seeing.Code: Select all
top
I'm wondering if there's still corruption in the mysql DB even after the repair run. Try the following:Code: Select all
service mysqld stop myisamchk -r -f /var/lib/mysql/nagios/*.MYI service mysqld start
And then lets also make sure postgres is in good shape:Code: Select all
psql nagiosxi nagiosxi vacuum; vacuum analyze; vaccum full; \q psql postgres postgres vacuum; vacuum analyze; vaccum full; \q
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: High load average on xi
Actually this looks like it is sorted by TIME
Run again and use SHIFT < or > to make the CPU the sorted field
Run again and use SHIFT < or > to make the CPU the sorted field