[mrtg] Re: use MRTG on something else

Mike Koch Mike.Koch at etsi.fr
Mon Jul 16 13:17:33 MEST 2001


	Yes, MRTG can graph *anything* ( even the temperature of your
swimming pool... ) as soon as you feed it with numbers.

	So the method is simple : write a script that output 4 lines :
Line 1 : current state of the first variable, normally 'incoming bytes
count'
Line 2 : current state of the second variable, normally 'outgoing bytes
count'
Line 3 : string (in any human readable format), telling the uptime of the
target. 
Line 4 : string, telling the name of the target. 

After, just put in your config file :
Target[foo]: `your script`

By the way, if you only need to graph a value, your script can return only :

Value
0
0
0

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