AW: [Nagiosplug-devel] Check_mem (linux)

Rouven Homann rouven.homann at cimt-ag.de
Wed Jul 27 01:57:05 CEST 2005


Ok, thanks for the hint. I fixed it to call only one sub process instead of 7.
Version is now 1.5 and attached. 

Mit freundlichem Gruß

Rouven Homann

cimt AG
Burchardstr. 17
20095 Hamburg
Tel.: +49.40.53302-0 Fax: -22

email: rouven.homann at cimt-ag.de
http://www.cimt-ag.de


-----Ursprüngliche Nachricht-----
Von: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] Im Auftrag von BOLLENGIER Eric
Gesendet: Dienstag, 26. Juli 2005 10:09
An: Rouven Homann
Cc: nagiosplug-devel at lists.sourceforge.net
Betreff: Re: [Nagiosplug-devel] Check_mem (linux)

Hi,

Sorry, but your sys_stats function is very ugly...
you launch 7 sub process to get 2 values.
(you can do the same with only one call to free -mt)

>    chomp($mem_total = `free -mt | grep Mem | awk '{print \$2}'`);
>    chomp($mem_used = `free -mt | grep cache | tail -1 | awk '{print 
> \$3}'`);

There more than way to do...

Regards

Le Tuesday 26 July 2005 08:09, Rouven Homann a écrit :
> This is v1.4 made by Garrett Honeycutt and me, Rouven Homann. This 
> perl linux plugin checks the percentage of memory usage with 
> performance data.
>
>
> Best Regards,
>
> Rouven Homann
>
> cimt AG
> Burchardstr. 17
> 20095 Hamburg
> Tel.: +49.40.53302-0 Fax: -22
>
> email: rouven.homann at cimt-ag.de
> http://www.cimt-ag.de


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_mem.gz
Type: application/x-gzip
Size: 1417 bytes
Desc: check_mem.gz
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20050727/7f715b94/attachment.bin>


More information about the Devel mailing list