[mrtg] Re: reading increasing OID's and converting strings. how?
Leonardo Rodrigues Magalhães
leolistas at solutti.com.br
Thu Oct 7 03:29:33 MEST 2004
I think there's absolutey no chance that MRTG can deal directly with
this crazy UPS :)
But, you're always welcome to create a perl script which does the crazy
things you need and then feed MRTG with the processed numbers.
So the idea is: build a perl script that grabs the last index and then
calls the OID of the last index. Get the value, parse it and print the
parsed information. Configure MRTG as:
target[voltage]: `/path/to/script-voltage.pl`
Should do the trick, but will need some extra work ......
----- Original Message -----
From: "Zee Doktor" <zee_doktor at yahoo.com>
To: <mrtg at list.ee.ethz.ch>
Sent: Wednesday, October 06, 2004 8:37 PM
Subject: [mrtg] reading increasing OID's and converting strings. how?
> Hi all,
>
> I want to monitor a UPS which reports data in a string format in ever
increasing OID indices. There's one OID which points at the last index:
>
> 1.3.6.1.4.1.9557.1.4.6.0 = 206
>
> then
>
> 1.3.6.1.4.1.9557.1.4.7.1.2.206 contains a string like this:
>
> "10/07/2004,01:30:17,232,232,0450,50.0,082,024"
>
> The 232's are input and output voltages, 082 is the percentage of power
output used, 024 is the temperature of the battery.
>
> Is there any way to handle this with MRTG? Any suggestions on how I can do
this programmatically? I'm using the windows version of MRTG.
>
> Thanks!
>
> - Balt
>
> ---------------------------------
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!
>
> --
> 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
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>
--
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
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list