<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>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.<br></div><div><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">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.<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Test 1: No limits, looks good.<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"># ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0<br>SNMP OK - 751600 | UCD-SNMP-MIB::memAvailSwap.0=751600</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;">Test 2: This should return OK because the warning is outside the returned value, but it is reporting a WARNING.<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"># ./check_snmp -H removed -m
 UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 400000:500000<br>SNMP WARNING - *751348* | UCD-SNMP-MIB::memAvailSwap.0=751348</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Test 3: This should return OK, but is incorrectly reporting CRITICAL.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"># ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 400000:500000 -c 1:250000</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">SNMP CRITICAL - *751352* |
 UCD-SNMP-MIB::memAvailSwap.0=751352<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Test 4: This should return a WARNING, but instead is reporting OK.<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">/check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 500000:800000<br>SNMP OK - 751352 | UCD-SNMP-MIB::memAvailSwap.0=751352<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">This acts like the -w is the "acceptable range", <br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Perhaps my understanding of the check_snmp is incorrect...<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Since I cannot install an agent on the OS, I'm open to suggestions on monitoring the free disk space on the system via
 SNMP or fixing the check_snmp package.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">thanks</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">B</div></div></body></html>