Ad Widget

Collapse

Sum used disk space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jordibrand
    Junior Member
    • Jan 2015
    • 16

    #1

    Sum used disk space

    Is it possible to create an item something like this?
    sum("vfs.fs.size[D:,used]")&last("vfs.fs.size[E:,used]")&last("vfs.fs.size[F:,used]")?
    I want to calculate the used disk space on multiple partition (e.g. D + E + F)
  • coreychristian
    Senior Member
    Zabbix Certified Specialist
    • Jun 2012
    • 159

    #2
    You will want to use a calculated item for that.

    Check our example 3.

    Comment

    • jordibrand
      Junior Member
      • Jan 2015
      • 16

      #3
      If I look at example 3, I don't know why mine isn't working.

      Example 3
      Calculating total bandwidth on eth0.

      Sum of two functions:
      last("net.if.in[eth0,bytes]")+last("net.if.out[eth0,bytes]")

      So I think the following item is OK:
      last("vfs.fs.size[D:,used]")+last("vfs.fs.size[E:,used]")+last("vfs.fs.size[F:,used]")
      Type: Zabbix agent
      Type of information: Numeric (unsigned)
      Data type: Decimal

      I get the error: Incorrect key: "Invalid item key format.".

      Don't know what is wrong?

      Comment

      • coreychristian
        Senior Member
        Zabbix Certified Specialist
        • Jun 2012
        • 159

        #4
        The Item Type should be 'Calculated' not 'Zabbix Agent'

        Comment

        • jordibrand
          Junior Member
          • Jan 2015
          • 16

          #5
          Thank you, it's working now!
          Last question, is het possible to export it to xml, xlsx or csv? I now have a summary of all disk sizes on the tab Monitoring -> Overview and then I select Application: Data (where the items are) and Type: Data

          Comment

          Working...