Ad Widget

Collapse

Group sum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabberuk
    Member
    • May 2010
    • 82

    #1

    Group sum

    I'm looking to collate (sum) the below figures for numerous mfds in a host group. I'm currently testing but i presume last_foreach will look at each host in the group? they all have the same item names.

    Code:
    sum(last_foreach(/*/mfd.mono.a4.10mins)) + sum(last_foreach(/*/mfd.mono.a3.10mins)) + sum(last_foreach(/*/mfd.colour.a4.10mins)) + sum(last_foreach(/*/mfd.colour.a3.10mins))
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    /*/key Matches the same item of any host.

    So currently you have no group definition in your expression... for group selection you should add
    Code:
    /*/key?[group="ABC"]

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Make sure you are not hitting https://support.zabbix.com/browse/ZBX-23576 though. :-)

      Comment

      Working...