This is a discussion on [rrd-users] Using RRDs within the RRD Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1682035592== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============1682035592== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7D073.2363A9CE" This is a multi-part message in MIME format. ------_=_NextPart_001_01C7D073.2363A9CE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, =20 I am using the RRDs Perl module, but I am having problems using the \g option in the COMMENT to get a newline. =20 my $args =3D [ "test.png", "--title", "Test Title", "--end", "now", "--start", "now-1d", "DEF:param0:test.rrd:param0:AVERAGE", "LINE1:param0#009900:Test" "COMMENT:\\g", "COMMENT:Next" ]; =20 =20 RRDs::graph(@$args); =20 The graph is produced, but the new line is not in the graph footer, I have tried \\\\g as well, that failed too. How do I correctly pass that comment through to the rrggraph function? =20 Thanks =20 Glenn ------_=_NextPart_001_01C7D073.2363A9CE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2>Hi=20 All,</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2>I am = using the RRDs=20 Perl module, but I am having problems using the \g option in the COMMENT = to get=20 a newline.</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2>my = $args =3D=20 [</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "test.png",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "--title",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "Test=20 Title",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "--end",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007> <FONT face=3DArial=20 size=3D2>"now",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "--start",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007> <FONT face=3DArial=20 size=3D2>"now-1d",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "DEF:param0:test.rrd:param0:AVERAGE",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "LINE1:param0#009900:Test"</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "COMMENT:\\g",</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2> = "COMMENT:Next"</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2>];</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2>RRDs::graph(@$args);</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial size=3D2>The = graph is=20 produced, but the new line is not in the graph footer, I have tried = <A>\\\\g</A>=20 as well, that failed too. How do I correctly pass that comment through = to the=20 rrggraph function?</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2>Thanks</FONT></SPAN></DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D389424716-27072007><FONT face=3DArial=20 size=3D2> Glenn</FONT></SPAN></DIV></BODY></HTML> ------_=_NextPart_001_01C7D073.2363A9CE-- --===============1682035592== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users --===============1682035592==-- |