The system command is in there after some other stuff.  I have a bunch of
pearl that calls the DEF, CDEF, LINE, and so on for the graph and after I
have all the bits I want I string it together and echo it to the system
which creates the graph and can then be called by a web page.

Here is the exact command that the perl spits out:

rrdtool graph c:\fw14_internet.gif \
-w 800 -h 350 -v Bytes -t Internet --start -86400 \
DEF:Input=fw14.rrd:if2_input:AVERAGE \
DEF:Output=fw14.rrd:if2_output:AVERAGE \
DEF:Errors=fw14.rrd:if2_errors:AVERAGE \
DEF:Input_max=fw14.rrd:if2_input:MAX \
DEF:Output_max=fw14.rrd:if2_output:MAX \
DEF:Errors_max=fw14.rrd:if2_errors:MAX \
LINE2:Input#00FF00:Input \
LINE2:Output#0000FF:Output \
LINE2:Errors#FF0000:Errors \
COMMENT:"\n" \
COMMENT:"\n" \
COMMENT:"                   Average             Max           Current\n" \
COMMENT:"In"


Not sure if this image will go through the list mailer, but if not
basically the comment at the bottom only has one space between words
instead of many:

(Embedded image moved to file: pic29657.gif)





>> I am using the x86 distribution of version 1.0.40
>>
>> I am starting to put together a perl script to add some comments at the
>> bottom of a graph.  So far I've started with this:
>> $commentcmd = ' COMMENT:"\n"';
>> $commentcmd = $commentcmd . ' COMMENT:"\n"';
>> $commentcmd = $commentcmd . ' COMMENT:"
Average
>> Max       Current\n"';
>> $commentcmd = $commentcmd . ' COMMENT:"In"';
>
>This has nothing to do with RRDtool I think.
>
>Add two lines to your perl code.  Something like
>
>  system("echo $commendcmd");
>  system("echo \"$commendcmd\"");
>
>I must admit I am no perl guru.  I would have expected the opposite of
>what I saw happening.  Nevertheless, I duplicated your problem without
>calling rrdtool even once.
>
>HTH
>Alex

Mike Fountain, CCNP
Sr. Network Engineer, Worldspan
[EMAIL PROTECTED]
770-563-7606


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/gif
-- Size: 64k (66233 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/pic29657.gif


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to