[mrtg] APC Powernet mib and TimeTicks

Brian Walters brian at mylinuxisp.com
Tue Jun 6 02:22:18 MEST 2000


I'm trying to use Mrtg to monitor my APC UPS's with the snmp management
cards. Everything is working really well thanks to the examples from so many
others who have already done this.

I've come across a problem that I just can't solve. The
upsAdvBatteryRunTimeRemaining(1.3.6.1.4.1.318.1.1.1.2.2.3) OID is supposed
to return the amount of time you have in your batteries based on current
system load and results from load tests. The problem is the format in which
the value is returned. The powernet mib lists it as TimeTicks, basically it
looks like this
0d 3:27:00.00
So what's happening when I run this through mrtg 2.8.9 is that it picks up
the 3 and dumps the rest.

Can anyone suggest a way to convert the value above into just minutes, then
a much smoother curve could be plotted. It's pretty safe to leave out any
processing of the 0d as I certainly don't plan to add enough extra batteries
to get there.

TIA,
Brian


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org



More information about the mrtg mailing list