Wöhrle USV – CS121 (OpenNMS Datacollection)

Posted: 9th Dezember 2011 by Thorben Hemmler in OpenNMS

### datacollection.xml ###

<group name=“usv“ ifType=“ignore“>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.4″ instance=“1″ alias=“outTruePowerL1″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.4″ instance=“2″ alias=“outTruePowerL2″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.4″ instance=“3″ alias=“outTruePowerL3″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.5″ instance=“1″ alias=“loadL1″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.5″ instance=“2″ alias=“loadL2″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.4.4.1.5″ instance=“3″ alias=“loadL3″ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.2.3″ instance=“0″ alias=“usvAutonomTime“ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.2.4″ instance=“0″ alias=“usvBatteryCapacity“ type=“integer“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.3.1″ instance=“0″ alias=“usvBlackOutCnt“ type=“counter“/>
<mibObj oid=“.1.3.6.1.2.1.33.1.2.2″ instance=“0″ alias=“usvSecondsOnBattery“ type=“integer“/>
</group>

<systemDef name=“CS-121-USV“>
<sysoid>.1.3.6.1.2.1.33</sysoid>
<collect>
<includeGroup>usv</includeGroup>
<includeGroup>mib2-ups-rfc1628</includeGroup>
</collect>
</systemDef>

 

### snmp-graph.properties ###

reports= usv-power-l1, usv-power-l2, usv-power-l3, usv-load-l1, usv-load-l2, usv-load-l3, usv-AutonomTime, usv-BatteryCapacity, usv-BlackOutCnt, usv-SecondsOnBattery

report.usv-power-l1.name=USV Output True Power L1
report.usv-power-l1.columns=outTruePowerL1
report.usv-power-l1.type=nodeSnmp
report.usv-power-l1.command=–title=“USV Power L1″ \
–vertical-label=“Watt“ \
DEF:load={rrd1}:outTruePowerL1:AVERAGE \
DEF:minLoad={rrd1}:outTruePowerL1:MIN \
DEF:maxLoad={rrd1}:outTruePowerL1:MAX \
LINE2:load#ff0000:“USV Output True Power L1″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-power-l2.name=USV Output True Power L2
report.usv-power-l2.columns=outTruePowerL2
report.usv-power-l2.type=nodeSnmp
report.usv-power-l2.command=–title=“USV Power L2″ \
–vertical-label=“Watt“ \
DEF:load={rrd1}:outTruePowerL2:AVERAGE \
DEF:minLoad={rrd1}:outTruePowerL2:MIN \
DEF:maxLoad={rrd1}:outTruePowerL2:MAX \
LINE2:load#ff0000:“USV Output True Power L2″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-power-l3.name=USV Output True Power L3
report.usv-power-l3.columns=outTruePowerL3
report.usv-power-l3.type=nodeSnmp
report.usv-power-l3.command=–title=“USV Power L3″ \
–vertical-label=“Watt“ \
DEF:load={rrd1}:outTruePowerL3:AVERAGE \
DEF:minLoad={rrd1}:outTruePowerL3:MIN \
DEF:maxLoad={rrd1}:outTruePowerL3:MAX \
LINE2:load#ff0000:“USV Output True Power L3″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-load-l1.name=USV Load L1
report.usv-load-l1.columns=loadL1
report.usv-load-l1.type=nodeSnmp
report.usv-load-l1.command=–title=“USV Load L1″ \
–lower-limit 0 –upper-limit 100 –rigid \
–vertical-label=“Percent“ \
DEF:load={rrd1}:loadL1:AVERAGE \
DEF:minLoad={rrd1}:loadL1:MIN \
DEF:maxLoad={rrd1}:loadL1:MAX \
LINE2:load#ff0000:“USV Load L1″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-load-l2.name=USV Load L2
report.usv-load-l2.columns=loadL2
report.usv-load-l2.type=nodeSnmp
report.usv-load-l2.command=–title=“USV Load L2″ \
–lower-limit 0 –upper-limit 100 –rigid \
–vertical-label=“Percent“ \
DEF:load={rrd1}:loadL2:AVERAGE \
DEF:minLoad={rrd1}:loadL2:MIN \
DEF:maxLoad={rrd1}:loadL2:MAX \
LINE2:load#ff0000:“USV Load L2″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-load-l3.name=USV Load L3
report.usv-load-l3.columns=loadL3
report.usv-load-l3.type=nodeSnmp
report.usv-load-l3.command=–title=“USV Load L3″ \
–lower-limit 0 –upper-limit 100 –rigid \
–vertical-label=“Percent“ \
DEF:load={rrd1}:loadL3:AVERAGE \
DEF:minLoad={rrd1}:loadL3:MIN \
DEF:maxLoad={rrd1}:loadL3:MAX \
LINE2:load#ff0000:“USV Load L3″ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-AutonomTime.name=USV Autonomy Time
report.usv-AutonomTime.columns=usvAutonomTime
report.usv-AutonomTime.type=nodeSnmp
report.usv-AutonomTime.command=–title=“USV Autonomy Time“ \
–vertical-label=“Minutes“ \
DEF:load={rrd1}:usvAutonomTime:AVERAGE \
DEF:minLoad={rrd1}:usvAutonomTime:MIN \
DEF:maxLoad={rrd1}:usvAutonomTime:MAX \
LINE2:load#ff0000:“USV Autonomy Time“ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-BatteryCapacity.name=USV Battery Capacity
report.usv-BatteryCapacity.columns=usvBatteryCapacity
report.usv-BatteryCapacity.type=nodeSnmp
report.usv-BatteryCapacity.command=–title=“USV Battery Capacity“ \
–lower-limit 0 –upper-limit 100 –rigid \
–vertical-label=“Percent“ \
DEF:load={rrd1}:usvBatteryCapacity:AVERAGE \
DEF:minLoad={rrd1}:usvBatteryCapacity:MIN \
DEF:maxLoad={rrd1}:usvBatteryCapacity:MAX \
LINE2:load#ff0000:“USV Battery Capacity“ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-BlackOutCnt.name=USV BlackOut Counter
report.usv-BlackOutCnt.columns=usvBlackOutCnt
report.usv-BlackOutCnt.type=nodeSnmp
report.usv-BlackOutCnt.command=–title=“USV BlackOut Counter“ \
–vertical-label=“Counter“ \
DEF:load={rrd1}:usvBlackOutCnt:AVERAGE \
DEF:minLoad={rrd1}:usvBlackOutCnt:MIN \
DEF:maxLoad={rrd1}:usvBlackOutCnt:MAX \
LINE2:load#ff0000:“USV BlackOut Counter“ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“

report.usv-SecondsOnBattery.name=USV Seconds On Battery
report.usv-SecondsOnBattery.columns=usvSecondsOnBattery
report.usv-SecondsOnBattery.type=nodeSnmp
report.usv-SecondsOnBattery.command=–title=“USV Seconds On Battery“ \
–vertical-label=“Seconds“ \
DEF:load={rrd1}:usvSecondsOnBattery:AVERAGE \
DEF:minLoad={rrd1}:usvSecondsOnBattery:MIN \
DEF:maxLoad={rrd1}:usvSecondsOnBattery:MAX \
LINE2:load#ff0000:“USV Seconds On Battery“ \
GPRINT:load:AVERAGE:“ Avg \\: %8.2lf %s“ \
GPRINT:load:MIN:“Min \\: %8.2lf %s“ \
GPRINT:load:MAX:“Max \\: %8.2lf %s\\n“