[mrtg] Re: use MRTG on something else

Vikas Yadav vikas.yadav at pitara.com
Tue Jul 17 07:30:27 MEST 2001


The script is getting called but the graph has simply nothing.
____

Target[foobar1]: `perl ss1.pl`;
MaxBytes[foobar1]: 400
Title[foobar1]: Nothing
PageTop[foobar1]: Nothing <b>much</b>

_____

995347270 200 0
995347270 0 0 0 0
995346971 0 0 0 0
995346900 0 0 0 0
995346600 0 0 15 0
995346300 0 0 0 0
995346000 0 0 0 0
995345700 0 0 0 0
_____

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Mike Koch
Sent: July 16, 2001 16:48
To: MRTG Mailing List (E-mail)
Subject: [mrtg] Re: use MRTG on something else



	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



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