check_snmp memory leak

Mark Krenz mark at suso.org
Sun Apr 12 16:20:08 CEST 2009


Nevermind, figured it out.  I just tried recompiling without the
--enable-embedded-perl option and that seems to have fixed it. Now the
memory usage is staying at just a couple MB.

Not sure why check_snmp was the only check that seemed to aggravate it
though.

On Sun, Apr 12, 2009 at 09:21:03AM GMT, Mark Krenz [mark at suso.org] said the following:
> 
>   I've run into some kind of memory leak in Nagios.  After removing
> checks and services to narrow it down, I've determined that its the 
> check_snmp command that is leaking memory.  With 33 hosts and almost
> each one having 1 check that uses check_snmp in it, it leaks about 1MB
> every couple checks.  It only takes a day for it to get to the point
> where nagiops is using 200-300MB of RAM.  I'd say that's pretty bad.
> 
> Anyways, I've tried recompiling nagios and the nagios plugins and I've
> upgraded all the packages on my system to make sure it wasn't something
> there and then recompiled again.  Any ideas as to what this might be?
> 
> Here are my system specs for the nagios server:
> 
> System type: Xen virtual machine.
> Architecture: x86_64
> Physical memory: 512MB
> Distribution: CentOS 5.3
> gcc ver: gcc-4.1.2-44.el5
> 
> Nagios ver: 3.0.6
> Nagios Configure settings: 
>    configure --with-command-group=nagcmd --enable-embedded-perl
> 
> Nagios plugins ver: 1.4.13
> Nagios Plugins Configure settings:  
>    configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql
> 
> 
> I actually have another machine that I was running Nagios on recently
> where I don't have this problem.  It has the same setup except its RHEL
> 5.2.
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> 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
> 


-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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