[hobbit] 4.2-alpha - disk tests

Roberto Tagliaferri r.tagliaferri at tosnet.it
Mon Apr 10 18:24:45 CEST 2006


Henrik Stoerner ha scritto:
>
>
> You're reading the code correctly. The problem is you cannot configure
> it currently.
>
> The problem I ran into is that I haven't found a way of detecting what
> metric is reported in the "df" output that the client reports. Here's 
> an example:
>
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda2             99511580  11417684  88093896  12% /
>
> Now, it's ease to figure out that there's 12% used on my / filesystem;
> even without the "Use%" column, I could just calculate 
>    (100 x 11417684) / 99511580 = 12
>
> But how can I tell what metric is used for "99511580" and "11417684" ?
> The heading does say "1K-blocks", but that varies quite a bit between
> the operating systems. At worst, it could be "disk blocks" - often 512
> bytes, but one never knows.
>
> Configuring a limit of "yellow at 2 GB free" requires that Hobbit can
> interpret the absolute values reported by the client, not just the
> relative amount of free space. I don't know if there's a good way of
> doing that, except to embed (more) knowledge about the various df's
> into Hobbit. And I'm not terribly keen on doing that.
>
>
> Henrik
>
>   
mmmm.... can you put a configuration line for this?
hda_blocks=1024 (or 512)....

-- 
Roberto Tagliaferri
Responsabile Progettazione & Produzione
TosNet s.r.l. - Internet Service Provider
r.tagliaferri at tosnet.it
www.tosnet.it




More information about the Xymon mailing list