Ad Widget

Collapse

Zabbix Aggregate cannot find key in host group

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcragun
    Junior Member
    • Jul 2014
    • 1

    #1

    Zabbix Aggregate cannot find key in host group

    Hi,

    I have a host group "Linux servers" and I would like to collect the aggregate load on the cpus.

    On one of the servers in the group, I have created an item with the following parameters:

    name: cpu-agg
    type: Zabbix aggregate
    key: grpavg["Linux servers","system.cpu.load[,avg1]",last,0]
    Type of Information: Numeric (Float)

    However, when I save it, after several minutes it says "not supported" with error:

    'No items for key "system.cpu.load[,avg1]" in group "Linux servers"

    I've double checked the spelling and names and am a little confused. I know that my hosts within the group are all collecting data. Does anyone have any suggestions of how to debug my setup?

    Thanks,

    Matt
  • jnichols
    Junior Member
    • May 2015
    • 1

    #2
    did you figure this out? i'm having the same problem.

    Comment

    • imoskovko
      Junior Member
      • Jan 2015
      • 6

      #3
      i think i am also unable to use aggregate function to figureout number of hosts in group

      grpsum["HostGroup","vfs.file.exist[/etc/hosts]",last,0]

      it returns

      No items for key "vfs.file.exist[/etc/hosts]" in group(s) "HostGroup"

      Can one elaborate or share experience on aggregate function usage.

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Hi all,

        The reason for this is quite simple.
        Code:
        No items for key "vfs.file.exist[/etc/hosts]" in group(s) "HostGroup"
        On hosts in group(s) "HostGroup" you must have items with exactly the same key as referenced in that aggregate formula "vfs.file.exist[/etc/hosts]" otherwise you will have that error.

        Aggregate items are not collecting values themselves, they just get them from already existing items.

        Also keep in mind that the item key must be 100% match, not a symbol more or less.
        So e.g. "system.cpu.load[,avg1]" must be on hosts and not "system.cpu.load[]" or anything else.

        When doing aggregated checks then they will return the same value for all of the hosts therefore sometimes it might be useful to have a dummy host that contains those aggregate items. Having them on host level just wastes your disk space otherwise.

        Hope this explains a little.

        Best Regards,
        Ingus

        Comment

        • imoskovko
          Junior Member
          • Jan 2015
          • 6

          #5
          Ingus, thank you a lot for comprehensive explanation.

          Comment

          • Szymon
            Junior Member
            • Sep 2023
            • 3

            #6
            Hello,
            what to do when only difference between item key name and agregate key with MACRO is that they have "" between ?
            item key name : keepalived.vip.["10.128.5.10/32"]


            agregate item
            {$KEEPALIVED_CALC_GROUP} = X-Group Cluster lab
            {$KEEPALIVED_CALC_IP} = keepalived.vip.["10.128.5.10/32"]


            grpsum["{$KEEPALIVED_CALC_GROUP}","{$KEEPALIVED_CALC_ IP}" ,sum,last]

            of course I tested lot of variables with "keepalived.vip.["10.128.5.10/32"]"
            and there is still

            No items for key "keepalived.vip.[10.128.5.10/32]" in group(s) "X-Group Cluster lab".

            ["10.128.5.10/32"] vs ["10.128.5.10/32"] or [10.128.5.10/32]

            Comment

            Working...