[mrtg] Perl script to convert Time (HH:MM:SS) to minutes

Chirhart, Brian bchirhart at fnni.com
Thu Dec 27 00:00:25 MET 2001


Hello all - 
	Thought I would shoot this script up so anyone can use it.  It is a
modification of the script in \mrtg\contrib\apc_ups -

Feed it an IP and community string and it will shoot back any time that read
HH:MM:SS to just minutes which is a number that MRTG can use.  So for
example - 01:30:00 will return 90.  Currently it is set up to return the
value of remaining battery life and amount of time on DC power for an APC
UPS, but it will work with any Oid that returns HH:MM:SS.

 <<UPS_Time.pl>> 
Docs are in the PL file.


-- Attached file removed by Listar and put at URL below --
-- Type: application/octet-stream
-- Size: 862 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/UPS_Time.pl


--
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