Ad Widget

Collapse

Problem with sum two items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pawel
    Junior Member
    • Sep 2017
    • 3

    #1

    Problem with sum two items

    Hello,

    I'm trying to sum two items with last().

    In my formula i have :

    Code:
    last("vfs.fs.size[../media/data1,total]")+last("vfs.fs.size[../media/ssd1,total]")
    but what I receive is only first item.

    What should I change to receive sum of both items?

    Regards, Pawel
    Attached Files
    Last edited by pawel; 26-09-2017, 07:27.
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    The expression is correct. Do you have both of the items and they are receiving values with the same parameters ?

    Regards,
    Alex!

    Comment

    • pawel
      Junior Member
      • Sep 2017
      • 3

      #3
      Yes, I have both items and receive values in GB.
      Attached Files

      Comment

      • allexpetrov
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2017
        • 361

        #4
        I bet that there might be the typo, try to copy this and just change the keys:

        Code:
        last("vfs.fs.size[/,total]")+last("vfs.fs.size[/boot,total]")
        I've spotted that you have there an item key starting with ../ , are you sure that those are correct ?

        Regards,
        Alex!

        Comment

        Working...