[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-buglist
Subject: [Buglist] [JIRA] (NMS-5115) Default netsnmp group memAvailSwap / memTotalSwap threshold raises alert
From: jira () opennms ! org (Tim Miller Dyck (JIRA))
Date: 2011-12-29 18:57:29
Message-ID: 1432064150.991.1325185049866.JavaMail.jira () mail1 ! opennms ! com
[Download RAW message or body]
Tim Miller Dyck created NMS-5115:
------------------------------------
Summary: Default netsnmp group memAvailSwap / memTotalSwap threshold \
raises alerts for devices that have no swap space allocated Key: NMS-5115
URL: http://issues.opennms.org/browse/NMS-5115
Project: OpenNMS
Issue Type: Enhancement
Components: Thresholding
Affects Versions: 1.9.93, 1.8.16
Reporter: Tim Miller Dyck
Assignee: Matt Brozowski
Priority: Minor
Some NetSNMP devices have no swap space at all -- for example, the lightweight \
OpenWrt distribution running on routers/wireless APs. In my case, I'm testing with \
OpenWrt 10.03.1 final (using snmpd-static - 5.4.2.1-5). This device has no swap and \
returns 0 for both "memAvailSwap" and "memTotalSwap". This causes alerts for the rule \
"expression="memAvailSwap / memTotalSwap * 100.0"", e.g. "A Threshold has been \
exceeded on node: ... The parameter memAvailSwap / memTotalSwap * 100.0 reached a \
value of 0 while the threshold is 10.0. This alert will be rearmed when memAvailSwap \
/ memTotalSwap * 100.0 reaches 15.0."
The fix is to add a filter so the threshold only applies when a non-zero value is \
returned for memTotalSwap.
<group name="netsnmp" rrdRepository="/var/lib/opennms/rrd/snmp/">
...
<expression
description="Trigger an alert when the amount of available swap space \
reaches 10% or less of the total amount of swap space for two consecutive measurement \
intervals (by default, 5 minutes each) (indicating a possible lack of enough free \
physical memory), including only systems that report having a swap device of size \
greater than 0 bytes" type="low" ds-type="node" value="10.0" rearm="15.0"
trigger="2" ds-label="" filterOperator="or" expression="memAvailSwap / \
memTotalSwap * 100.0">
<resource-filter field="memTotalSwap">^[1-9]+[0-9]*$</resource-filter>
</expression>
...
</group>
Thanks,
Tim Miller Dyck
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
http://issues.opennms.org/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic