Ad Widget

Collapse

Zabbix 2.2.3 Aggregate checks problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alejo
    Junior Member
    • Oct 2016
    • 2

    #1

    Zabbix 2.2.3 Aggregate checks problem

    Good morning,

    I'm using Zabbix 2.2.3 and I have a problem with aggregate checks.

    I have a Host Group "HG" with a lot of Host "H1",...,"Hn". Each of this host has an item to check the presence (icmpping key).

    I want to calculate the average presence of the host that belongs to host group "HG".

    So I have created a dummie host that contains an item of type Aggregate Check like this grpavg["HG","icmpping",last,1d]. But I always obtain the same result "No items for key [icmmping] in group(s) [HG]".

    Could anyone to help me with this problem or propose another way to realize this task?

    Thank you, Alejo.
  • Alejo
    Junior Member
    • Oct 2016
    • 2

    #2
    Good morning,

    I have found the problem. The name of the hosts are icmpping[ip]. For example:
    • icmpping[0.0.0.1]
    • icmpping[0.0.0.2]
    • icmpping[0.0.0.3]
    • ........................
    • icmpping[0.0.0.n]


    Because of that, when I use grpavg["HG","icmpping",last,1d], it not found items named icmpping.

    Is there any way to use a regex as item key? For example, grpavg["HG","icmpping[*]",last,1d]

    Thanks, Alejo.

    Comment

    • registration_is_lame
      Senior Member
      • Nov 2007
      • 148

      #3
      Bumping this thread...

      Can someone please comment on this?
      Zabbix 3.2

      Item key - icmpping[,3]

      Code:
      grpsum["mygroup","icmpping",last,0]" became not supported: No items for key "icmpping" in group(s) "mygroup".
      Code:
      grpsum["mygroup","icmpping[,3]",last,0]" became not supported: No items for key "icmpping[,3]" in group(s) "mygroup".
      Code:
      grpsum[mygroup,icmpping[,3],sum,0]" became not supported: No items for key "icmpping[,3]" in group(s) "mygroup".
      According to this thread link he says removing quotes helped him, but I still get the same error.
      Last edited by registration_is_lame; 10-04-2017, 08:25.

      Comment

      • Akansha123
        Member
        • Jun 2016
        • 54

        #4
        syntax of icmpping mentioned in grpsum should match icmpping configured on any host

        Hello,

        An aggregate item may become unsupported in several cases:

        1) none of the referenced items is found (which may happen if the item key is incorrect

        2) none of the items exists or all included groups are incorrect)
        no data to calculate a function

        In your case it appears either icmpping is not configured on any host or the syntax of icmpping mentioned in grpsum does not matches icmpping configured on hosts.

        Example1 :
        host1 -> icmpping[<ip>]
        host2 -> no such key configured
        host3 -> no such key configured
        And aggregate check on host3 is configured like below:-
        grpsum["HG","icmpping[]",last,1d]

        o/p -> error: No items for key "icmpping[]" in group(s) "HG"

        Solution:- configure icmpping on host1 as icmpping[] instead of icmpping[<ip>] so, that icmpping mentioned in grpsum exactly matches icmpping configured on hosts.

        Example2 :
        host1 -> icmpping[]
        host2 -> icmpping[]
        host3 -> no such key configured
        And aggregate check on host3 is configured like below:-
        grpsum["HG","icmpping[,3]",last,1d]

        o/p -> error: No items for key "icmpping[,3]" in group(s) "HG"

        Solution:- configure icmpping on any host as icmpping[,3] instead of icmpping[] so, that icmpping mentioned in grpsum exactly matches icmpping configured on hosts.

        Example3:
        host1 -> no such key configured
        host2 -> no such key configured
        host3 -> no such key configured

        And aggregate check on host3 is configured like below:-
        grpsum["HG","icmpping[]",last,1d]

        o/p -> error: No items for key "icmpping[]" in group(s) "HG"

        Solution:- configure icmpping on any host as same as mentioned in grpsum function

        Please try this at your end as it should work now and revert in case of any issue.

        Comment

        Working...