<div>You will probably want to approach this the same way that Xymon handles disk sizes, with each disk getting stored in a separate RRD, and with a naming convention that is compatible with hobbitgraph.  It will take some fiddling.</div>

<div> </div>
<div>There are two ways to "catch" this data on the Hobbit server and both are documented.  One is NCV, and the other is to write your own "data parser" as an external script.  I prefer the external data parser because it is more flexible than NCV, but NCV is "compiled in" so therefore "supported".</div>

<div> </div>
<div>The thing to look out for is this: the number of directories that you want to track may be more than Hobbitgraph can handle.  Depending on where you are going with this you might need to look into using other RRD tools for graphing so you can avoid the limits in Hobbitgraph (although it is pretty good).</div>

<div> </div>
<div>Are you going to update this every 5 minutes?  If not, you will have some other challenges to overcome if you try to leverage the Hobbit data collection/graphing system.</div>
<div> </div>
<div>GLH<br><br> </div>
<div><span class="gmail_quote">On 9/1/09, <b class="gmail_sendername">Harold J. Ballinger</b> <<a href="mailto:hballinger@heritage-healthcare.com">hballinger@heritage-healthcare.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">This is an example of the output that I am working from to build my script:<br>-------------------Output Pasted Below------------------------------<br>
Searching for directories that have exceeded 3000 megabytes<br>   Size (mb)  Files  Directory<br>     2265.08   7567  SUB-TOTAL: E:\USERS\aeads<br>      164.12   6264  SUB-TOTAL: E:\USERS\atimberlake<br>       26.75   2236  SUB-TOTAL: E:\USERS\bdunlap<br>
     1092.05   3783  SUB-TOTAL: E:\USERS\ccampbell<br>      989.58   3143  SUB-TOTAL: E:\USERS\ccampbell.old<br>      982.81   3124  SUB-TOTAL: E:\USERS\ccampbell.oldest<br>       89.50   2660  SUB-TOTAL: E:\USERS\ccannady<br>
        0.00      0  SUB-TOTAL: E:\USERS\cdavis<br>!     3459.78  10628  SUB-TOTAL: E:\USERS\dbailey<br>        0.52      6  SUB-TOTAL: E:\USERS\dbarker<br>     1193.83    840  SUB-TOTAL: E:\USERS\ddavis<br>      230.26   2887  SUB-TOTAL: E:\USERS\dlowry<br>
     2312.57   3822  SUB-TOTAL: E:\USERS\dpalacio<br>        4.91    230  SUB-TOTAL: E:\USERS\epaschalis<br>        0.00      0  SUB-TOTAL: E:\USERS\ginnmon<br>     1479.80   3302  SUB-TOTAL: E:\USERS\hballinger<br>        9.92    642  SUB-TOTAL: E:\USERS\jcollier<br>
       37.52   1155  SUB-TOTAL: E:\USERS\jhaddad<br>        0.00      0  SUB-TOTAL: E:\USERS\jscott<br>     1269.20   3697  SUB-TOTAL: E:\USERS\jtrew<br>        0.00      0  SUB-TOTAL: E:\USERS\kbowser<br>        0.00      0  SUB-TOTAL: E:\USERS\kbradley<br>
      552.58    987  SUB-TOTAL: E:\USERS\kdarr<br>      107.06   3177  SUB-TOTAL: E:\USERS\kmast<br>      112.47   1636  SUB-TOTAL: E:\USERS\kmerritt<br>        3.30    164  SUB-TOTAL: E:\USERS\leads<br>!     3580.77  11199  SUB-TOTAL: E:\USERS\lfrick<br>
      537.32   1762  SUB-TOTAL: E:\USERS\lfrick.old<br>!     9255.93  16732  SUB-TOTAL: E:\USERS\lfrick.oldest<br>     1207.79   6822  SUB-TOTAL: E:\USERS\lhayes<br>      417.43   3142  SUB-TOTAL: E:\USERS\lheiser<br>       83.59   1328  SUB-TOTAL: E:\USERS\lzipsir<br>
     2101.66   3466  SUB-TOTAL: E:\USERS\mzatcoff<br>      256.97   2249  SUB-TOTAL: E:\USERS\ncrawford<br>!     3163.03   5488  SUB-TOTAL: E:\USERS\pshaw<br>       46.40    628  SUB-TOTAL: E:\USERS\seads<br>        0.00      0  SUB-TOTAL: E:\USERS\shawes<br>
      905.58   4948  SUB-TOTAL: E:\USERS\swoodard<br>        2.48    189  SUB-TOTAL: E:\USERS\test1<br>        0.03     33  SUB-TOTAL: E:\USERS\_ICONS<br>    37942.57  119936  TOTAL<br>-------------------End Copy/Paste--------------------------<br>
If one of the directories is over the limit that has been defined, the line is  indicated with a "!" at the first character position. I will prepend the output with "&green %date% %time%" or "&red %date% %time%" depending on whether or not any "!" are found in the file to indicate the status of the test. I will then replace the "!" with "&red" before storing the file into %BBHOME%\logs\folders. I am considering having the "SUB-TOTAL: " stripped from each line and having the header and footer/total lines stripped as well before sending. This just covers how I will send the test to Xymon.<br>
<br>It sounds like you have some sample scripts that could help me in taking it to the next level and by getting this reporting as data into RRD for graphing. I am very interested in seeing these scripts so that I can work on getting this working 100%.<br>
<br>Thanks so much.<br><br>-----Original Message-----<br>From: W.J.M. Nelis [mailto:<a href="mailto:nelis@nlr.nl">nelis@nlr.nl</a>]<br>Sent: Tuesday, September 01, 2009 6:32 AM<br>To: <a href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a><br>
Subject: Re: [hobbit] Folders RRD info<br><br><br>> I am writing a new ext called "folders" that will provide a check to<br>> see that folders do not exceed a certain size. For example, it will<br>> check the folders that contain each user's personal network drive,<br>
> list them all with their sizes, and indicate any that are over the<br>> limit. I have this much worked out and think that I have the red,<br>> green, yellow parts of the script working properly.<br>><br>><br>
><br>> However, it would be even better if I could store the sizes of these<br>> folders within Hobbit/Xymon as data in RRD and have  them graphed.<br>><br>><br>><br>> How do I send the data to Hobbit in a format that it will understand<br>
> as being RRD data and that will be tied to the "folders" test for this<br>> host?<br>><br>><br>This sounds like a variable number of measurements (one per folder) with<br>a fixed number of parameters per measurement (one (size) or two<br>
(size,max)). In that case you should use  the '--extra-test' option (see<br><a href="http://www.hswn.dk/hobbit/help/manpages/man8/hobbitd_rrd.8.html">http://www.hswn.dk/hobbit/help/manpages/man8/hobbitd_rrd.8.html</a>). You<br>
probably also need a script to build the header of each graph. If you<br>like, I can send you sample scripts.<br><br>Within the body of the status message, you'll include the measured<br>values in NCV format, which might be embedded in HTML comment. Note that<br>
you might need to change other lines in the status message in order to<br>avoid them to be interpreted as NCV. One way of doing so is to replace<br>each ":" by "&#58;" and each "=" by "&#61;". The script named in<br>
"--extra-test" writes those values to RRDs. O, include a line in the<br>status message, before the measurements, stating the number of<br>measurements, that is include a line with "<!-- linecount=N -->" with a<br>
suitable value for N.<br><br>Kind regards,<br>Wim Nelis.<br><br><br><br>*******************************************************************************************************<br>The NLR disclaimer (<a href="http://www.nlr.nl/emaildisclaimer">http://www.nlr.nl/emaildisclaimer</a>) is valid for NLR e-mail messages.<br>
*******************************************************************************************************<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.