Ad Widget

Collapse

vfs.fs.size[] reporting incorrect sizes (FreeBSD)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lstewart
    Junior Member
    • Feb 2009
    • 11

    #1

    vfs.fs.size[] reporting incorrect sizes (FreeBSD)

    Hi Folks,

    Any help on this is greatly appreciated. The values I'm getting from zabbix_agentd do not match those that are reported by the operating system.

    From zabbix:
    # /usr/local/sbin/zabbix_get -s sh-b8.XXXXXXXXXXX -p 10050 -k'vfs.fs.size[/home4,free]'
    11878643712
    # /usr/local/sbin/zabbix_get -s sh-b8.XXXXXXXXXXX -p 10050 -k'vfs.fs.size[/home4,pfree]'
    8.347343

    From the O/S:
    # df /home4
    Filesystem 1K-blocks Used Avail Capacity Mounted on
    /dev/da3s1c 138860928 127260306 491748 100% /home4

    Naturally you can imagine this is a bit of a problem. We supposedly have 8% left on that partition but we actually have 0%.

    Some host info:
    # uname -a
    FreeBSD sh-b8.XXXXXXXXXXX 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 [email protected]:/usr/obj/usr/src/sys/SMP i386

    # pkg_info | grep zabbix
    zabbix-agent-1.6,2 Application and network monitoring solution

    If there's anything else I can provide that might help please let me know. I'm thoroughly confused by this - it has to be something wrong with zabbix_agentd.

    Thank you,
    Landon
    Last edited by lstewart; 21-05-2009, 20:12.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Originally posted by lstewart
    From zabbix:
    # /usr/local/sbin/zabbix_get -s sh-b8.XXXXXXXXXXX -p 10050 -k'vfs.fs.size[/home4,free]'
    11878643712
    # /usr/local/sbin/zabbix_get -s sh-b8.XXXXXXXXXXX -p 10050 -k'vfs.fs.size[/home4,pfree]'
    8.347343

    From the O/S:
    # df /home4
    Filesystem 1K-blocks Used Avail Capacity Mounted on
    /dev/da3s1c 138860928 127260306 491748 100% /home4
    The 'df' must be fixed obviously:

    138860928 != 127260306 + 491748

    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • outi
      Junior Member
      • May 2008
      • 2

      #3
      if exactly 8% is missing, then this is a faq. FreeBSD reserves 8% of space on each disk for usage only be root (housekeeping of ufs).

      Comment

      • lstewart
        Junior Member
        • Feb 2009
        • 11

        #4
        Thank you very much. I was not aware of this 8% reserve.

        Comment

        Working...