BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Extract information from LaRRD
On 20 Oct 2006 20:23:47 +0100, Philip Clark <bblist@cannae.uklinux.net> wrote:
I think that the order, as presented in the Larrd graphs, is just
"dictionary sort" order. The fly in the ointment is that the root
filesystem is actually in a file like host.name.net.disk,root.rrd
so it appears out of place.
That is absolutely correct. However, I have actually taken the 'root'
scenario into consideration and label that in my PDF as '/'.
However, it would probably (eventually) be simpler to go straight
to the "rrd" files and use rrdtool to create the graphs that you
need. On the command line, it would look something like this:
I agree 100%.
rrdtool graph /tmp/testimg.png --end now --start end-48h --title
"host.name.net Disk Utilization - Percent Used Last 48 Hours"
--width 576 -v "% Full" -u 100 -a PNG DEF:ds0=/usr/local/bb/bbvar/
rrd/host.name.net.disk,usr.rrd:pct:AVERAGE LINE2:ds0#0000FF:/usr
COMMENT: GPRINT:ds0:"LAST: \: %5.1lf (cur)"
GPRINT:ds0:"MAX: \: %5.1lf (max)" GPRINT:ds0:"MIN: \: %5.1lf (min)"
GPRINT:ds0:"AVERAGE: \: %5.1lf (avg)\n" COMMENT:"Fri Oct 20 19-14-32
2006"
Note that this needs to be all on one line.
I had a feeling I *should* have RTFRRDM - that is excellent. I will
give that a whirl and report my findings.
If you know Perl, you could even use the RRDs Perl module then cut
and paste the relevant sections out of the larrd-grapher.cgi script.
Ooh, yes, and since there's a multitude of PDF modules for Perl, that
could be the route to go.
Thank you very much!
--
A: Because it's counterintuitive to the way we read.
Q: Why is top-posting bad?
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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