NRPE Memory Limit 2GB ??

Andreas Ericsson ae at op5.se
Fri Aug 27 18:54:50 CEST 2004


Wengrzik, Andreas wrote:
> Hello i run nagios 1.2 with nrpe
> the nsclient shows me the correct value of ram, but nrpe stops at
> each server at an amount of 2 GB.
> 

This problem has nothing to do with nrpe, but the limited functionality 
of the plugin or its underlying datasource (i.e. another program).

I imagine the program where the bug resides uses a signed int to store 
the values of the available RAM. A signed int stores exactly 2GB, so if 
it's more than that it would fail (most likely showing negative numbers 
instead). You can easily patch this yourself by looking up the variable 
declaration and change it from int to unsigned long long, which is 
capable of holding a number greater than all bytes of RAM available on 
this planet, and shuld thus suffice until it can be properly worked 
around. ;-)

> SOme one has same problems??

If I'm correct, then everybody does, but it's not sure that many have 
noticed.

> Thanks!
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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