Thresholds: Dell OpenManage

Posted: 22nd Oktober 2012 by marcel in OpenNMS
Tags: , , ,

Durch den OpenManage -Blog haben wir ja bereits verstanden, wie man Temperatur- und Lüfterdaten in OpenNMS bekommt.

/etc/opennms/thresd-configuration.xml

   <package name="Dell-OpenManage">
        <filter>IPADDR != '0.0.0.0'</filter>
        <include-range begin="1.1.1.1" end="254.254.254.254"/>
        <service name="SNMP" interval="300000" user-defined="false" status="on">
            <parameter key="thresholding-group" value="Dell-OpenManage"/>
        </service>
   </package>

Das hier ist einmal für die Temperatur (wenn zu hoch) und für die Lüfter (wenn zu niedrig).
Die Thresholds werden ausgelöst, wenn die von Dell vorgegebenen kritischen Werte erreicht werden.

/etc/opennms/thresholds.xml

<group name="Dell-OpenManage" rrdRepository="/var/lib/opennms/rrd/snmp/">
        <expression type="low" ds-type="coolingDeviceIndex" value="0.0"
            rearm="1.0" trigger="1" ds-label="coolingDeviceLocationName"
            triggeredUEI="uei.opennms.org/custom/dell/FanLow"
            rearmedUEI="uei.opennms.org/custom/dell/FanNormal"
            filterOperator="or" expression="coolingDevReading - coolDevLowCritThres"/>
        <expression type="low" ds-type="temperatureProbeIndex"
            value="0.0" rearm="1.0" trigger="1"
            ds-label="temperatureProbeLocationName"
            triggeredUEI="uei.opennms.org/custom/dell/temp"
            rearmedUEI="uei.opennms.org/custom/dell/temp-ok"
            filterOperator="or" expression="(tempProbeUpCrit - tempProbeReading) / 10"/>
    </group>

So könnten Notifications dafür aussehen:
/etc/opennms/notifications.xml

    <notification name="Dell-OpenManage-FanLow" status="on" writeable="yes">
        <uei>uei.opennms.org/custom/dell/FanLow</uei>
        <rule>(IPADDR IPLIKE *.*.*.*)</rule>
        <destinationPath>administratoren_instant</destinationPath>
        <text-message>Low threshold exceeded for SNMP datasource %parm[ds]% on interface %interface%, node %nodelabel%. The device %parm[label]% reached a value of %parm[value]% while threshold is %parm[threshold]%. This alert will be rearmed when %parm[ds]% reaches %parm[rearm]%.</text-message>
        <subject>Notice #%noticeid%: Low Threshold for %parm[ds]% on node %nodelabel%.</subject>
        <numeric-message>111-%noticeid%</numeric-message>
    </notification>
    <notification name="Dell-OpenManage-TempHigh" status="on" writeable="yes">
        <uei>uei.opennms.org/custom/dell/temp</uei>
        <rule>(IPADDR IPLIKE *.*.*.*)</rule>
        <destinationPath>administratoren_instant</destinationPath>
        <text-message>High threshold exceeded for SNMP datasource %parm[ds]% on interface %interface%, node %nodelabel%. The device %parm[label]% reached a value of %parm[value]% while threshold is %parm[threshold]%. This alert will be rearmed when %parm[ds]% reaches %parm[rearm]%.</text-message>
        <subject>Notice #%noticeid%: High Threshold for %parm[ds]% on node %nodelabel%.</subject>
        <numeric-message>111-%noticeid%</numeric-message>
    </notification>
  1. I absolutely love your blog and find most of your post’s to be what precisely I’m looking for.
    Would you offer guest writers to write content
    for you? I wouldn’t mind producing a post or elaborating on a few of the subjects you write with regards to here. Again, awesome web log!