Ad Widget

Collapse

Trying to determine free space on mounted filesystems, including reserved space.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbix_mouse_123
    Junior Member
    • Oct 2025
    • 3

    #1

    Trying to determine free space on mounted filesystems, including reserved space.

    Zabbix Server Version: 7.0.17

    As the title suggests, I am trying to create an item that determines the free space of the mounted file systems on some Ubuntu servers, each with a couple of mounted file systems.

    As it stands currently, the hosts are inheriting a template named 'mounted filesystem discovery' whose Key=vfs.fs.discovery.
    This template has 4 item prototypes, whose keys are:
    vfs.fs.inode[{#FSNAME},pfree]
    vfs.fs.size[{#FSNAME},pused]
    vfs.fs.size[{#FSNAME},total]
  • Viktors Fomics
    Member
    • Oct 2025
    • 42

    #2
    Hello

    There is only a prototype item for free space excluding the reserved space, but since you specifically want to include the reserved space, it would make sense to create it as a calculated item with a formula: vfs.fs.size[{#FSNAME},total] - vfs.fs.size[{#FSNAME},used].

    Comment

    • Viktors Fomics
      Member
      • Oct 2025
      • 42

      #3
      Originally posted by Viktors Fomics
      Hello
      There is only a prototype item for free space excluding the reserved space, but since you specifically want to include the reserved space, it would make sense to create it as a calculated item with a formula: vfs.fs.size[{#FSNAME},total] - vfs.fs.size[{#FSNAME},used].
      Correction: the 'last' function would be needed here though:

      last(vfs.fs.size[{#FSNAME},total]) - last(vfs.fs.size[{#FSNAME},used])

      Comment

      Working...