Dave Heavy Industries Dave Heavy Industries – blog


MRTG config for APC Switched Rack PDU


We just got a pair of AP8959EU3 Managed power rails, and decided to point MRTG at it to graph our power usage...

Well, the SNMP oid for this device isĀ enterprises.318. .The current is returned as AMPSx10 .

I.E... will return 100 for 10 amps. The reason for this is that all things snmp expect whole numbers (bits, bytes etc..), the rail measures to 1/10th AMP, so this is the only way they could really do it.

Because of this, you need to let MRTG know that the scale is 0.1

other than that... its very straight foward.

$Path is the Working directory, you need to create it before running it. $Community is the snmp community (usually public), $Host is the hostname/ip of the power rail, $name is the MRTG name of the instance. $Title is the friendly name. Easy?

WorkDir: $PATH
Target[$NAME]: enterprises.318.$COMMUNITY@$HOST
MaxBytes[$NAME]: 200
Title[$NAME]: $Title
PageTop[$NAME]: <H1>$Title</H1>
Options[$NAME]: gauge, nopercent, absolute, unknaszero, growright
YLegend[$NAME]: Current
ShortLegend[$NAME]: Amps
Legend1[$NAME]: Current, Amps
Legend2[$NAME]: .
Legend3[$NAME]: Max value per interval on graph
Legend4[$NAME]: .
LegendI[$NAME]: Current
LegendO[$NAME]: .
Colours[$NAME]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[$NAME]: ymw
YTicsFactor[$NAME]: 0.1
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.