BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} larrd graphing problem...
- To: bb@bb4.com
- Subject: {bb} larrd graphing problem...
- From: Todd Kaehler <kaehler@psmfc.org>
- Date: Mon, 23 May 2005 13:40:21 -0700
- Content-transfer-encoding: 7BIT
- Content-type: text/plain; charset=ISO-8859-1; format=flowed
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)
Hi,
After 2 day of debugging, I found that my rrdtool (v 1.2.6) on Linux
will not work correctly when using a number for the label. For example:
rrdtool graph /var/tmp/foo.png DEF:0=salmo.procs.rrd:la:AVERAGE
AREA:0#00CC00:Processes
Gives a flat line graph. It I change it to:
rrdtool graph /var/tmp/foo.png DEF:proc=salmo.procs.rrd:la:AVERAGE
AREA:proc#00CC00:Processes
It works just fine. Not sure why this is the case. Has anyone seen
this problem?
To fix BigBrother problems with things like larrd disk, I changed in
larrd-grapher.cgi, anywhere it used numbers as the label to make alpha
(at least the first letter). For example the disk section of:
return [
qq{DEF:$p=$RRD:pct:AVERAGE},
qq{LINE2:$p#$color:$part},
qq{-u 100},
qq{COMMENT:$comment},
qq{GPRINT:$p:LAST:$padding \\: %5.1lf (cur)},
qq{GPRINT:$p:MAX: \\: %5.1lf (max)},
qq{GPRINT:$p:MIN: \\: %5.1lf (min)},
qq{GPRINT:$p:AVERAGE: \\: %5.1lf (avg)\\n},
]
Where $p is a number...
I changed to:
return [
qq{DEF:x$p=$RRD:pct:AVERAGE},
qq{LINE2:x$p#$color:$part},
qq{-u 100},
qq{COMMENT:$comment},
qq{GPRINT:x$p:LAST:$padding \\: %5.1lf (cur)},
qq{GPRINT:x$p:MAX: \\: %5.1lf (max)},
qq{GPRINT:x$p:MIN: \\: %5.1lf (min)},
qq{GPRINT:x$p:AVERAGE: \\: %5.1lf (avg)\\n},
]
And everything is now working.
Has anyone else had this problem? Is there a better work around?
Thanks,
--
Todd Kaehler kaehler@psmfc.org http://www.psmfc.org/
Pacific States Marine Fisheries Commission
205 S.E. Spokane St, Suite 100 . Portland, Oregon 97202
Phone:(503)595-3100 Fax:(503)595-3232
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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