Find a script to check memory usage - Found word(s) risk free in the Text body.

alan.simon at free.fr alan.simon at free.fr
Thu Apr 28 16:37:46 CEST 2005


al wrote:

>Hello,
>
>you can, find some plugins at the nagiosexchange web site, there's à
>check_snmp.php http://www.nagiosexchange.org/SNMP.51.0.html
>
>you can use your own bash scripte (with ssh or nrpe)
>
>on a redhat el3
>mem-percent-used = $(free | awk '$1=="Mem:" {print $3 / $2 * 100}')
>then test $percent and exit the good return code
>
>
>
>
>Selon Olivier Boissard <olivier.boissard at cerene.fr>:
>
>
>
>>Hello ,
>>
>>I try to find a script / plugin to check the % of free memory with linux
>>without perl .
>>
>>Do you known where I can find it ?
>>
>>thanks
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by: Tell us your software development plans!
>>Take this survey and enter to win a one-year sub to SourceForge.net
>>Plus IDC's 2005 look-ahead and a copy of this survey
>>Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
>>_______________________________________________
>>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
>>
>>
>>
>
>
>
>
>
>
OK ,
the following command works well ;

mem-percent-used = $(free | awk '$1=="Mem:" {print $3 / $2 * 100}')

Thanks a lot


----- Fin du message transféré -----




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
_______________________________________________
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