BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: {bb} LARRD - RRDTOOL Problem



RRDTool 1.2 requires colons to be escaped within graph comments

Edit larrd-grapher.cgi and look for the following lines (around line 1500 or
thereabouts):

    RRDs::graph($RRD_graph,"-s",$graph_c{$service}{$graph}{'start_sec'},
        "--title",$graph_c{$service}{$graph}{'title'},"-w576",
        "-v",$graph_c{$service}{'yaxis'},"-a","PNG","--lazy",
        &defs($host,$service,$graph,$disk_part),
        qq{COMMENT:$date\r});

Note the last line above, ie "qq{COMMENT:$date\r});"
It's quite likely that your date variable will contain colons - therefore
they must be escaped.

A quick and dirty way to take care of this is to insert the following line
just BEFORE the above code.

 $date =~ s/:/\\:/g;

This _may_ solve your problem.

Regards,
Darren

> -----Original Message-----
> From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of 
> Lozovsky, Daniel
> Sent: Wednesday, 21 June 2006 6:15 AM
> To: bb@bb4.com
> Subject: RE: {bb} LARRD - RRDTOOL Problem
> 
> 
> I am using the following version:
> 
> RRDTOOL: RRDtool 1.2.12
> PERL: 5.8.7
> BB: 1.9i
> LARRD: larrd-0.43d
> 
> 
> -----Original Message-----
> From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of 
> Philip Clark
> Sent: Monday, June 19, 2006 3:45 PM
> To: bb@bb4.com
> Subject: RE: {bb} LARRD - RRDTOOL Problem
> 
> 
> On Sat, 2006-06-17 at 03:01, Lozovsky, Daniel wrote:
> > I got larrd to generate rrd files finaly, however I am experiencing
> > the problem with generating html files for the graphs.  I 
> do not see 
> > any graphs in the bb/www/html directory.
> 
> Might it be this problem again?
> 
>   http://support.bb4.com/archive/200606/msg00015.html
> 
> If not, which versions of Larrd and Rrdtool are you using?
> I would also be helpful to know if there is anything unusual 
> appearing in the BBOUT or LARRDOUT files.
> 
> Cheers, Phil.
> 
> 
> 
> -- 
> A bachelor is a selfish, undeserving guy who has cheated some 
> woman out of a divorce. (Don Quinn)
> 
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> To unsubscribe from this list, or to subscribe to the 
> bb-digest list send e-mail to mailto:majordomo@bb4.com with 
> unsubscribe bb -and/or- subscribe bb-digest in the BODY of 
> the message.
> 
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> To unsubscribe from this list, or to subscribe to the 
> bb-digest list send e-mail to mailto:majordomo@bb4.com with 
> unsubscribe bb -and/or- subscribe bb-digest in the BODY of 
> the message.
> 


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index