check_snmp

Andreas Ericsson ae at op5.se
Mon Aug 27 15:42:23 CEST 2012


On 08/27/2012 03:20 PM, Brad Beckenhauer wrote:
> I have got an app that require us to monitor the Swap file
> space and trigger an alert when the Available Swap (free
> space, falls below 500MB).  Initially it seems pretty simple, but the check_snmp plugin does not seem to be working with ranges.
> 
> 
> Here is the first command and it is correctly reporting the free space on
> the system.  Great, so I added some warning and critical limits but the
> limits are not working the way I expected.
> 
> 
> Test 1: No limits, looks good.
> 
> # ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0
> SNMP OK - 751600 | UCD-SNMP-MIB::memAvailSwap.0=751600
> 
> Test 2: This should return OK because the warning is outside the returned value, but it is reporting a WARNING.
> 

You misunderstand. When using ranges, the given range are the limits
on the OK range, and anything outside that triggers the alert.

As per your explanation above, I would assume

-c 500000: -w 550000:

would be reasonable values. That will cause a critical alert when
the value is below 500000 and a warning value when it's below 550000.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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