NRPE Memory Limit 2GB ??

Wengrzik, Andreas Wengrzik at ewr.de
Wed Oct 6 15:41:08 CEST 2004


> 
> That would be the check_swap or check_mem source-code file.
> 
Hi!

There are some files for the memload check:

memload_nrpe_nt.cpp
memload_nrpe_nt.dsp
memload_nrpe_nt.dsw
memload_nrpe_nt.ncb
memload_nrpe_nt.opt
memload_nrpe_nt.plg

I searched for 'signed int' in these files but there was no result :/



















> > Thanks a lot!
> > 
> > 

> >>-----Original Message-----
> >>From: Andreas Ericsson [mailto:ae at op5.se]
> >>Sent: Friday, August 27, 2004 6:55 PM
> >>To: nagios-users at lists.sourceforge.net
> >>Subject: Re: [Nagios-users] NRPE Memory Limit 2GB ??
> >>
> >>
> >>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
> > 
> > 
> > 
> 
> -- 
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
> 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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