check_snmp_storage.pl - check disk space for /

Chris atstake at gmail.com
Thu Jan 29 12:23:56 CET 2009


On Wed, Jan 28, 2009 at 9:10 PM, Marc Powell <marc at ena.com> wrote:
>
> On Jan 28, 2009, at 10:19 PM, Chris wrote:
>
>> Is there any way to get it check only the / partition and not the
>> other ones?
>>
>> Here is the commands I tried:
>>
>> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m / -
>> w 20 -c 21
>> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^/
>> -w 20 -c 21
>> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^\/
>> -w 20 -c 21 ( that's an escape sequence there after the caret)
>
> If this is the check_snmp_storage.pl from manubulon, they give that
> specific test as an example. Tested and works --
>
> http://nagios.manubulon.com/snmp_storage.html
>
> "%used of / mountpoint only is less than 80% and 90%
> ./check_snmp_storage.pl -H 127.0.0.1 -C public -m / -r -w 80% -c 90
>
> -r, --noregexp
> Do not use regexp to match NAME in description OID"
>
>
>
> $ ./check_snmp_storage.pl -H <redacted> -C <redacted> -m / -r -w 80% -
> c 90%
>
> /: 72%used(5641MB/7874MB) (<80%) : OK


Thanks. I downloaded this script and it works perfectly fine. I was
missing the -r option.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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