[hobbit] Folders RRD info

Stef Coene stef.coene at docum.org
Mon Aug 31 20:45:50 CEST 2009


On Monday 31 August 2009, Harold J. Ballinger wrote:
> I am writing a new ext called "folders" that will provide a check to see
> that folders do not exceed a certain size. For example, it will check the
> folders that contain each user's personal network drive, list them all with
> their sizes, and indicate any that are over the limit. I have this much
> worked out and think that I have the red, green, yellow parts of the script
> working properly.
>
> However, it would be even better if I could store the sizes of these
> folders within Hobbit/Xymon as data in RRD and have  them graphed.
>
> How do I send the data to Hobbit in a format that it will understand as
> being RRD data and that will be tied to the "folders" test for this host?
If you have the latest xymon version, you can send an extra trends message.  
An example:

bb <xymon server> "data <server name>.trends
[test.rrd]
DS:test:GAUGE:600:0:U 10"

This will create a test.rrd file in the rrd directory on the hobbit server 
with the numer 10 in the data source named test.
In your case, I think it's best to name your rrd's like the rrds used to store 
the filesystem information.

And of course you need some extra stuff in hobbitgraph.cfg.
If you send the folder message, you can include the needed links to the graphs 
so the graphs are displayed on the folter check page.


Stef



More information about the Xymon mailing list