Ad Widget

Collapse

No show disk space usage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alb73
    Junior Member
    • Mar 2023
    • 2

    #1

    No show disk space usage


    i am using zabbix server 6.2 and zabbix agent 6.0 on servers.

    For all Linux servers I use the "Linux by Zabbix agent" template

    The problem is that for some servers the chart on free disk space is not displayed. That is, there is no such indicator.

    I saw that the problem is for Centos, here are several versions of different servers without such a metric

    CentOS Linux release 7.7.1908 (Core)
    CentOS Linux release 7.6.1810 (Core)
    CentOS Linux release 7.2.1511 (Core)
    CentOS Linux release 7.9.2009 (Core)

    In total, I have such servers without this metric 62 out of 250

    How can this be fixed?

  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Based on https://www.zabbix.com/integrations/linux
    There is no "free space" item at all...
    Filesystems {#FSNAME}: Used space Used storage expressed in Bytes ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},used]
    Filesystems {#FSNAME}: Total space The total space expressed in Bytes. ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},total]
    Filesystems {#FSNAME}: Space utilization The space utilization expressed in % for {#FSNAME}. ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},pused]
    Filesystems {#FSNAME}: Free inodes in % - ZABBIX_PASSIVE vfs.fs.inode[{#FSNAME},pfree]


    Can you please share the item config, what you have there, what seems to be missing on some hosts...

    Comment

    • alb73
      Junior Member
      • Mar 2023
      • 2

      #3
      My problem: I don't see Item: "filesystem" for this servers.

      On list items missing "Mounted filesystem discovery"

      Discovery rules "Linux by Zabbix agent: Get filesystems: Mounted filesystem discovery" is listed on both servers.

      and status "Enable". Rule is standard.

      "Regular expressions" - File systems for discovery - standard - ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2 |vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$

      server without "filesystem" in zabbix:
      df -Th
      Filesystem Type Size Used Avail Use% Mounted on
      /dev/vda1 ext4 99G 92G 1.6G 99% /
      tmpfs tmpfs 246M 0 246M 0% /dev/shm

      severt with "filesystem" in zabbix:
      devtmpfs devtmpfs 5.8G 0 5.8G 0% /dev
      tmpfs tmpfs 5.8G 0 5.8G 0% /dev/shm
      /dev/vda1 ext4 178G 161G 7.6G 96% /
      tmpfs tmpfs 1.2G 0 1.2G 0% /run/user/0

      what could be the problem? Help me please
      Attached Files

      Comment

      • Rolz
        Junior Member
        • Aug 2024
        • 2

        #4
        hey alb73 did you ever work this out? I'm having the same thing with 7.0 LTS

        I've added 2 Linux hosts and 1 Windows box to be monitored via SNMP, on the Windows machine I see the disks and their capacity being monitored, but in the Linux area this "FS [{#FSNAME}]: Space utilization chart (relative to total)" us just blank.

        Disk monitoring via SNMP is working as I can see them in my PRTG instance. Any pointers? I've tried "Generic by SNMP" and "Linux by SNMP" templates and no joy.

        Comment

        • t00m1G
          Junior Member
          • Jan 2024
          • 26

          #5
          alb73
          Hey,
          can you check what you're getting after running this on your zabbix server instance?
          zabbix_get -s (IP-or-Hostname-of-problematic-host) -p (port-number) -k "vfs.fs.get"
          in that way you can check if your Zabbix is able to read details of filesystems on that host.

          more about zabbix_get: https://www.zabbix.com/documentation...l/concepts/get

          Comment

          • Rolz
            Junior Member
            • Aug 2024
            • 2

            #6
            found my solution I had to add the following lines into my snmpd.conf file

            # Specifically monitor the root directory
            disk /
            disk /mnt/usb

            then they would be seen in zabbix... strange why I didn't have to have them in PRTG for it to work.

            Comment

            Working...