[collectd] plans on adding filesystem total & free blocks
monitoring?
Niki Waibel
niki.waibel at newlogic.com
Wed Dec 7 17:12:27 CET 2005
On 05-Dec-2005 Florian Forster wrote:
> Hello everyone,
>
> On Mon, Dec 05, 2005 at 08:59:42AM +0100, Florian Forster wrote:
>> After all, it's merely a call to `statvfs' (POSIX) or `statfs' (other
>> UNIX like systems). Don't you just love the creativity these guys
>> develop when it comes to syscalls? ;)
>
> I was an unknowing fool. These UNIX guys apparently like writing
> libraries almost as much as they like writing syscalls. I've taken a
> look into the GNU Coreutils, into `lib/mountlist.c' to be precise. I had
> no idea. There are like a hundred ways to get the currently mounted file
> systems. Freaks..
indeed. trying to solve that in
quota_mnt.c
> Compared to that mess the statv?fs issue is trivial.. The hard thing is
> getting to the actual mount points. Right now I think about taking the
> code from the Coreutils or just support Linux and Solaris for now and
> add more systems as people request them.[1] For some reason I doubt much
> interest in `__alpha running OSF_1' anytime soon..
>
> OTOH, Niki has done something into this direction already. Niki, what
> was your motivation to not just copy the `mountlist.c'?
there is many many routines, small functions in that, which are just overhead.
i'll have a look if i get some time...
> One last thing: Has anyone a good name for that module? `disk' is taken
> and `mountpoint' missleading..
mountstats, maybe?
niki
More information about the Collectd
mailing list