[rrd-users] Escaping % in PRINT ?
Rrdtool at previnet.it
Wed Jul 30 12:29:04 MEST 2003
I'm just about to convert my whole mrtg setup to rrdtool (currently about
2700 Target, linux on pentium 2000 won't handle it anymore).
I'm experimenting with routers2.cgi (v2.12beta) for a intermediate
migration, later it will be cricket I suppose, but I'll need to change lots
of custom monitoring scripts before. So this is a newby alert :)
Anyway, I found routers2.cgi failing on lots of targets and tracked it down
to the mrtg cfg containing a literal % (percentage sign) in the LegendI/O
RRD Error: bad format for [G]PRINT in 'Load % 1min Max %6.2lf %s%%, '
it seems to be called from routers2.cgi around line 3582 :
"PRINT:$mds0:MAX:".$q->b($legendi)." Max $ssin, ",
(same for legendo)
In the rrdtool manual I didn't yet find a way to escape a % sign, e.g.
($perctemp = $q->b($legendi)) =~ s/%/percentage/g;
"PRINT:$mds0:MAX:".$perctemp." Max $ssin, ",
What can be used instead of "percentage" in order to produce a literal %
sign in [G]PRINT ?
-- PREVINET S.p.A. www.previnet.it
-- Heiko Herold Heiko.Herold at previnet.it
-- +39-041-5907073 ph
-- +39-041-5907472 fax
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users