[rrd-users] GPRINT and a New line

Martin Rheumer martinr at hotkey.net.au
Fri Oct 28 11:48:10 MEST 2005

Ive fought with this enough so decided to post.

I am making what I think is a simple graph.

   my ($graphret,$xs,$ys) = RRDs::graph $GIF, "--title", $hash1{port}.
"\n\nFrom $unix_start_date1 To $start_date\n",
          "--vertical-label", 'Bits Per Second', "--start", ($graph_start),
         "--end", $graph_end,
        "--interlace", "--imgformat","PNG",
         "LINE1:alpha#ff0000:In Bits",
         "LINE1:beta#00ff00:Out Bits",
         "HRULE:$hline#ff8800:High Water Mark at $hline",
         "PRINT:alpha:AVERAGE:Average In Bits %1.2lf",
         "PRINT:alpha:MIN:Min In Bits %1.2lf",
         "PRINT:alpha:MAX:Max In Bits  %1.2lf",
         "PRINT:beta:AVERAGE:Average Out Bits %1.2lf",
         "PRINT:beta:MIN:Min Out Bits %1.2lf",
         "PRINT:beta:MAX:Max Out Bits  %1.2lf",
         "VRULE:".($graph_start-3600)."#008877:60 Minutes ago",
         "VRULE:".($graph_start-7200)."#008877:120 Minutes ago",
         "GPRINT:alpha:AVERAGE: \\nAverage In Bits %1.2lf",
         "GPRINT:alpha:MIN:Min In Bits %1.2lf",
         "GPRINT:alpha:MAX:Max In Bits %1.2lf\\n",
         "GPRINT:beta:AVERAGE:Average Out Bits %1.2lf",
         "GPRINT:beta:MIN:Min Out Bits %1.2lf",
         "GPRINT:beta:MAX:Max Out Bits %1.2lf\\n";

and it works perfectly.

Except for the New Line command.

"GPRINT:alpha:AVERAGE: \\nAverage In Bits %1.2lf"

Just before it starts to display the word Average I would like it to
appear on the next line. Anyone got any more hints ?

Also whats up with the web pages ?
I click on Documentation, rrdgraph and stupid Internet Explorer spits.
Internet Explorer cannot open the Internet site
Operation aborted 

Help appreciated 


Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list