[mrtg] Re: use MRTG on something else

Mike Koch Mike.Koch at etsi.fr
Tue Jul 17 09:36:24 MEST 2001


The graph is empty because your script returns 200 and, by default, the
interval is 5 minutes in MRTG (300 seconds). So, the value is rounded to 0
(because 200/300 < 1).

So, maybe you are monitoring a gauge, not a counter. So in Options, write
gauge. This way, you will not have a counter behavior (that is not this /300
).

If this is not a gauge, but a real counter, then multiply it by 1000 (for
example), and write somewhere in the html page that it is in thousandth (do
we say this word in English ?).



-----Original Message-----
From: Vikas Yadav [mailto:vikas.yadav at pitara.com]
Sent: mardi 17 juillet 2001 07:30
To: Mike Koch; MRTG Mailing List (E-mail)
Subject: RE: [mrtg] Re: use MRTG on something else


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