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.3220.127.116.11.18.104.22.168.2.1 .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.322.214.171.124.126.96.36.199.2.1&enterprises.3188.8.131.52.184.108.40.206.2.1:$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