Ad Widget

Collapse

Change an item

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Killingot
    Junior Member
    • Oct 2023
    • 5

    #1

    Change an item

    Hello,

    I want to create a new item similar to this one:

    Click image for larger version

Name:	image.png
Views:	288
Size:	58.6 KB
ID:	471649

    This item gives you the result of the occupied disk space in percentage.

    I want to change the percentage occupied by the remaining disk space. I believe that this simply has to modify the key, right?

    Can someone tell me how to do it?​
  • Answer selected by Killingot at 09-10-2023, 07:24.
    adrian_c
    Junior Member
    • Nov 2018
    • 12

    In order to get free space as a percentage, change the key to:

    Code:
    vfs.fs.size[E:,pfree]
    See: https://www.zabbix.com/documentation....fs.sizefsmode

    Comment

    • adrian_c
      Junior Member
      • Nov 2018
      • 12

      #2
      In order to get free space as a percentage, change the key to:

      Code:
      vfs.fs.size[E:,pfree]
      See: https://www.zabbix.com/documentation....fs.sizefsmode

      Comment

      • Killingot
        Junior Member
        • Oct 2023
        • 5

        #3
        Thank you for your response Adrian. I will give it a try. I will tell you later

        Comment

        • Killingot
          Junior Member
          • Oct 2023
          • 5

          #4
          Hello again,

          The graph shows me some very strange values:

          Click image for larger version

Name:	image.png
Views:	245
Size:	24.7 KB
ID:	471782​Right now, in this partition, there are about 15GB left. I need to get the value in GB. Any suggestions?

          Comment

          • adrian_c
            Junior Member
            • Nov 2018
            • 12

            #5
            pfree will give percentage free, if you want actual free space, then just use free

            for the key vfs.fs.size[fs,mode], possible values for mode are:

            total (default)
            free
            used
            pfree (free, percentage)
            pused (used, percentage)

            So in your case for the total free space on drive E: use

            Code:
            vfs.fs.size[E:,free]
            All this can be found in the documentation: https://www.zabbix.com/documentation....sizefsmode​

            Comment

            • Killingot
              Junior Member
              • Oct 2023
              • 5

              #6
              Thank you very much adrian

              Comment

              Working...