BB Unix Network Monitor - Message

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

{bb} Extract information from LaRRD



Hello, brothers and sisters.

I am, in the name of appeasing upper mgmt and their hunger for "purdy
pitchers", extracting information about filesystems (for trending)
using a conglomerate of sh/ksh scripting and PHP with a PDFifier. It
works well functionally, but I'm realizing that my method of
extracting data is flawed.

Instead of going into a long explanation on how I'm currently doing it
(which I KNOW is FAR from efficent, but mgmt said "now", so what do
you do?), I'll put it this way:

Currently, if you use a URL similar to this:

http://<bbserver>/cgi-bin/larrd-grapher.cgi?host=<hostname>&service=disk&disk_part=6..11

you get 6 file systems listed. If I want ONE single filesystem, I do
the following:

http://<bbserver>/cgi-bin/larrd-grapher.cgi?host=<hostname>&service=disk&disk_part=6..6

However - how do I reliably (and in a script) link that '6' graph back
to a real filesystem? If I look in ${BBHOME}/bbvar/rrd, I can see that
(again, in this particular case), the 6th <hostname>.disk* file
corresponds to the correct picture (the filename and the image agrees
on filesystem name), but that doesn't always seem to be the case. Is
there a more reliable way of linking that number to a file system
name?

Thank you in advance!

--
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