Ad Widget

Collapse

non-root modes for fs and inodes items(FreeBSD)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teferi
    Member
    • Jul 2008
    • 93

    #1

    non-root modes for fs and inodes items(FreeBSD)

    on FreeBSD Zabbix monitores all free space in / if for example we pass an item with key like vfs.fs.size[/, pfree], includeing that which is reserved for superuser. That means that if you run df / on the same host - you'll get a different number!(because tools like df only who space avaliable for non-root users). Same is true for inodes.

    this patch adds 4 new modes to item vfs.fs.size and vfs.fs.inode.

    the modes are nrfree, nrused, nrpfree and nrpused. which are exact same as free, used, etc. except that they calculate space/inodes avaliable to non-root users.

    The patch is against 1.6.1 version of zabbix(but I think it'll apply to 1.6 version). I didn't check it much, but propably it's possible to write a very similar patch for most systems(linux, openbsd, etc.)
    Attached Files
Working...