nagios 3.0b3 abnormal cpu load ?

SCHAER Frederic frederic.schaer at cea.fr
Mon Sep 10 12:25:07 CEST 2007


Hi again,

 

There is a difference between the nagios I compiled on the 2.4 kernel /
RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand :

when stracing the nagios process, I can see it's calling the nanosleep()
function - and it then sleeps -, whereas on the 2.4 box I can't see such
a call : I just see this kind of thing (and lots of these) :

 

gettimeofday({1189419621, 161574}, NULL) = 0

time([1189419621])                      = 1189419621

time([1189419621])                      = 1189419621

gettimeofday({1189419621, 183742}, NULL) = 0

gettimeofday({1189419621, 183780}, NULL) = 0

gettimeofday({1189419621, 183814}, NULL) = 0

time([1189419621])                      = 1189419621

gettimeofday({1189419621, 184172}, NULL) = 0

gettimeofday({1189419621, 184326}, NULL) = 0

time([1189419621])                      = 1189419621

time([1189419621])                      = 1189419621

gettimeofday({1189419621, 184734}, NULL) = 0

gettimeofday({1189419621, 184861}, NULL) = 0

gettimeofday({1189419621, 184984}, NULL) = 0

time([1189419621])                      = 1189419621

gettimeofday({1189419621, 185537}, NULL) = 0

gettimeofday({1189419621, 185734}, NULL) = 0

 

Bad thing is that I tried to configure with and without the
-enable-nanosleep or -disable-nanosleep switches, but this apparently
has no effect :'(.

So it seems nagios is sleeping all the time, eating the CPU... I'm still
trying to see if I can find a way to compile with a "working sleep".

 

Fred

 

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER
Frederic
Sent: Friday, September 07, 2007 5:51 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi,

 

I'm trying to setup a nagios 3.0b3 server, and I configured it with only
one host, one check (ping).

I can successfully start nagios, but I have concerns about the server
cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
machine...

 

Is there something I could do to decrese this load ? I tried installing
a nagios 2.9 server using the same configuration, and the load caused by
nagios is just ... 0.

I guess this is a bug in the beta 3 ?

 

Increasing the sleep time in nagios.cfg does not help at all even if I
put sleep_time=2500 (2500 seconds !)

 

Any suggestions would be welcome :-)

 

P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
know if this could help. I don't see many usefull things with maximum
debug verbosity...

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070910/b29090ff/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list