check_snmp - UPS

Subhendu Ghosh sghosh at sghosh.org
Wed Nov 23 01:26:49 CET 2005


On Tue, 22 Nov 2005, Richard Gliebe wrote:

> On Tue, 2005-11-22 at 07:06 +0100, Richard Gliebe wrote:
>> On Mon, 2005-11-21 at 09:43 -0500, Subhendu Ghosh wrote:
>>
>> Hi,
>>
>>> "negate" is a plugin that will change the return code of a plugin.
>>>
>>> with check_snmp - try -w 0:60 -c 0:80
>>>
>>> you will get a warning above 60 and critical above 80
>>
>> Sorry, but it returns also an critical alert:
>>
>> # ./negate /usr/local/libexec/nagios/check_snmp -H ups.company.com \
>> -C <Community> -o <OID> -w 0:60 -c 0:80
>> SNMP CRITICAL - *100*
>>
>> What I want is, when the return value is below 100 (warning: 80 /
>> critical: 60) I want to get an alert.
>
> I think I got it ;-)
>
> # /usr/local/libexec/nagios/check_snmp -H ups.company.com \
> -C <Community> -o <OID> -w 99:80 -c 99:60 -l "Battery Status (%)"
> Battery Status (%) OK - 100
>
> Is this the right syntacs ?
>
> thanks
> Richard
>
>

Depends.  The above will only give you a critical between 99% and 60%, an 
ok below 60%

max:min - non-ok within range
min:max - ok within range.


-- 

-sg


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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