Threshold
Subscribe

From OpenNMS

Jump to: navigation, search

Thresholding disk

This should be merged into Thresholding

Since we're monitoring freespace, we want low thresholds. The values are in kilobytes. So basically, we are saying when the volume's freespace gets lower than X kilobytes, trip the threshold low action. If it goes back up above the re-arm value, then trip a re-arm action.

Edit thresd-configuration.xml:

Add a new package as such:

       <package name="Your NetWare Server Name">
               <filter>IPADDR IPLIKE *.*.*.*</filter>
               <specific>"Your NetWare IP Address"</specific>
               <service name="SNMP" interval="300000" user-defined="false" status="on">
                       <parameter key="thresholding-group" value="Your NetWare server name-snmp"/>
               </service>
               <outage-calendar>zzz from poll-outages.xml zzz</outage-calendar>
       </package>


Again, note the IP and the value for the thresholding-group.

Now in thresholds.xml, define the thresholding group:

       <group name="Your NetWare server name-snmp"
               rrdRepository = "/var/opennms/rrd/snmp/">
               <threshold type="low" ds-name="disk-sys-free" ds-type="node" value="1204764" rearm="1304764" trigger="3"/>
               <threshold type="low" ds-name="disk-dept-free" ds-type="node" value="20062184" rearm="2104764" trigger="3"/>
               <threshold type="low" ds-name="disk-nos-free" ds-type="node" value="2085172" rearm="2185172" trigger="3"/>
               <threshold type="low" ds-name="disk-ts-free" ds-type="node" value="564680" rearm="664680" trigger="3"/>
               <threshold type="low" ds-name="disk-psft-free" ds-type="node" value="20897928" rearm="21897928" trigger="3"/>
               <threshold type="low" ds-name="disk-user-free" ds-type="node" value="10025812" rearm="11025812" trigger="3"/>
               <threshold type="low" ds-name="disk-apps-free" ds-type="node" value="7417340" rearm="7517340" trigger="3"/>
       </group>

That's it, restart opennms and you're done with that server.