Ad Widget

Collapse

additionnate differents values from differents items in one item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amazigh76
    Junior Member
    • Sep 2016
    • 12

    #1

    additionnate differents values from differents items in one item

    hi,
    i have a script in my encoder which count how many channels are decoding, this value reach to zabbix for differents encoders (Hosts) , i would like to create an item which additionnate all values from all server (hosts) to see the total number of decoding channel and graph it

    for information, i have a template which count in one server how many channels are decoding, so i apply this template in all my encoders..
  • guzzijason
    Senior Member
    • Dec 2015
    • 106

    #2
    If I'm understanding your problem correctly, I think what you might want to look at is the use of aggregate checks:



    __Jason

    Comment

    • amazigh76
      Junior Member
      • Sep 2016
      • 12

      #3
      thanks for your reply
      yes i tried to use aggregate but i have multiple of errors...

      where to create this new item because to create a new item i have to select an host... do i have to select a host ( an encoder )...?

      then when i create item
      i select type : Zabbix aggregate
      then in key after select i have this exemple :
      grpfunc[<group>,<key>,<func>,<param>]

      in my exemple
      grpfunc[<Encoder1,Encoder2,Encoder3,"nbenco[enco]",grpsum,last]


      but it doesn't work many errors of syntax like this ...
      Key "grpfunc" does not match <grpmax|grpmin|grpsum|grpavg>["Host group(s)", "Item key", "<last|min|max|avg|sum|count>", "parameter"].

      is there something wrong in my syntax?

      Originally posted by guzzijason
      If I'm understanding your problem correctly, I think what you might want to look at is the use of aggregate checks:



      __Jason

      Comment

      • amazigh76
        Junior Member
        • Sep 2016
        • 12

        #4
        i create a new host named channel
        then this item is enabled like this

        grpsum[["ENCODER1","ENCODER2","ENCODER3"],"[nbenco[encoding]]",last,0]

        but it is not supported because "no items for key "nbenco[encoding" in groups ENCODER1 ENCODER2...

        i don't understand why "nbenco[encoding]" is the item which retrieve the value in each encoder it exists...








        Originally posted by guzzijason
        If I'm understanding your problem correctly, I think what you might want to look at is the use of aggregate checks:



        __Jason

        Comment

        • guzzijason
          Senior Member
          • Dec 2015
          • 106

          #5
          Originally posted by amazigh76
          grpsum[["ENCODER1","ENCODER2","ENCODER3"],"[nbenco[encoding]]",last,0]
          Try this:

          grpsum["ENCODER1,ENCODER2,ENCODER3","nbenco[encoding]",last]

          You have a lot of brackets in there that should be there. Also, you don't need to specify a time period if the function is "last".

          __Jason

          Comment

          • guzzijason
            Senior Member
            • Dec 2015
            • 106

            #6
            Also, are "ENCODER1", "ENCODER2", and "ENCODER3" host groups, or individual hosts? They should be groups.

            __Jason

            Comment

            • amazigh76
              Junior Member
              • Sep 2016
              • 12

              #7
              no there are in a group i have no rights to create a group ...
              and it is not work without [ ] ....

              thanks for your help
              Originally posted by guzzijason
              Also, are "ENCODER1", "ENCODER2", and "ENCODER3" host groups, or individual hosts? They should be groups.

              __Jason

              Comment

              • guzzijason
                Senior Member
                • Dec 2015
                • 106

                #8
                I think that's the problem then. grpsum needs groups.

                __Jason

                Comment

                • amazigh76
                  Junior Member
                  • Sep 2016
                  • 12

                  #9
                  thanks;
                  i create a specific group encoders i will see after update if it works
                  thanks a lot ))


                  Originally posted by guzzijason
                  I think that's the problem then. grpsum needs groups.

                  __Jason

                  Comment

                  • amazigh76
                    Junior Member
                    • Sep 2016
                    • 12

                    #10
                    thanks jason
                    the problem was due to the group it is working fine now )


                    Originally posted by guzzijason
                    I think that's the problem then. grpsum needs groups.

                    __Jason

                    Comment

                    Working...