Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10188

vfs.fs.size may return values for block devices, which is wrong

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 2.4.7
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:

      Description

      Accidentally discovered during discussion in ZBX-10183

      I'm surprised that block devices for vfs.fs.size return some values.
      A test on my side:

      # df -B1 /
      Filesystem        1B-blocks         Used   Available Use% Mounted on
      /dev/sda2      196568788992 186131685376 10437103616  95% /
      
      # zabbix_get -s localhost -k vfs.fs.size[/,free]
      10437103616
      # zabbix_get -s localhost -k vfs.fs.size[/,used]
      186131685376
      
      # zabbix_get -s localhost -k vfs.fs.size[/dev/sda2,free]
      10485760
      # zabbix_get -s localhost -k vfs.fs.size[/dev/sda2,used]
      0
      
      # zabbix_get -s localhost -k vfs.fs.size[/dev/sda1,free]
      10485760
      # zabbix_get -s localhost -k vfs.fs.size[/dev/sda1,used]
      0
      

      note how wrong values for sda1 and sda2 partitions are identical, while they are definitely different.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: