[mrtg] Re: Comments getting us in trouble

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Jan 4 11:14:29 MET 2002


Paul C. Williamson wrote:
>> > You should be able to generate these lines using the PRINT statement
>> > in the grapher.  If the script uses "ds0" and "ds1" for the in vs. out
>> > datasource, you could do something like:
>> > 
>> >     PRINT:ds0:MAX:"<!-- maxin d %.0lf -->"
>> > 
>> > and similar lines.  Refer to the manual page describing "rrdtool graph".
>> > 
>> 	But isn't this going to show up in a .png or .gif?
>> 
>> 	They need it in an .html which they can parse (They have a program that
>> does the parsing already).
>
> Well then, it looks like they'll need to rewrite the 
> parser.  Even if they did show up in the png, you 
> can't parse it like you can an MRTG page.  It's "in" 
> the png.  You'll have to get them to write something 
> to go directly at the RRAs within the .rrd.  I had to 
> do the same thing with the talker script.  I was 
> parsing html pages, and when I moved to RRDTool, I had 
> to switch gears to against the rrds instead.  Much 
> more efficient in the long run to do it that way 
> anyway.

There is a big difference between GPRINT and PRINT.
GPRINT prints in the Graph, PRINT justs prints.

iow: the command I presented will cause the line to appear
in the web page.

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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