[Nagiosplug-devel] Troubles with Check_mem.pl
Thomas Guyot-Sionnest
Thomas at zango.com
Wed Sep 13 17:01:15 CEST 2006
free is likely the command you'll want to use. Invoked as "free -k" it will
report the same numbers as top (You can also get them in -b(ytes) -m(egs)
and -g(igs)), but should run much faster and be easier to parse.
Thomas
> -----Original Message-----
> From: nagiosplug-devel-bounces at lists.sourceforge.net
> [mailto:nagiosplug-devel-bounces at lists.sourceforge.net] On
> Behalf Of lewis at wsc.com
> Sent: September 13, 2006 10:51
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] Troubles with Check_mem.pl
>
> On Red Hat AS 3 systems, with perl 5.8.0 the check_mem.pl
> script is an unreliable indicator of the remaining memory.
> I've had cases where it reports a problem where none exists,
> or fails to report a problem where memory is critically low.
>
>
>
> I'm not an experienced perl programmer, but I swapped in some
> code to use top, instead of vmstat, and then to deal with the
> output from that operation. I think it works better.
>
>
>
> A patch file is attached. The original work is GPL'ed so
> these derivative modifications are as well, if anyone cares
> to use this change.
>
>
>
> I'd be happy to hear why this change *won't* work, by the way.
>
>
>
> Be well,
>
>
>
> Karl
>
>
>
> Karl W. Lewis
>
> Wall Street Concepts
>
> 44 Wall Street
>
> New York, NY 10005
>
> (646) 443-8791
>
> (212) 797-9897 FAX
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3022 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20060913/a811aea2/attachment.bin>
More information about the Devel
mailing list