Ad Widget

Collapse

Calculated items doesnt work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    #1

    Calculated items doesnt work

    Hi

    if i take "last("net.if.in[eth1,bytes]")+last("net.if.out[eth1,bytes]")" i get the error of zabbix 1.8 Appliance => Incorrect key format 'key_name[param1,param2,...]'

    Which Key is the right one or/and which change should i do ?

    greetings
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Your syntax seems correct.

    Do "net.if.in[eth1,bytes]" and "net.if.out[eth1,bytes]" items exist ?
    Have you selected "Calculated" in Type drop down list ?

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • Guest

      #3
      no.

      Now i have select "calculated" have i out the line ""last("net.if.in[eth1,bytes]")+last("net.if.out[eth1,bytes]")" on key or on field "expression" ?

      Should i do also to put any "value" on some fields ?

      Greetings

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        For key, you can use anything. e.g in.out.tot (up to you, but must be unique)

        In Formula: last("net.if.in[eth1,bytes]")+last("net.if.out[eth1,bytes]")

        For Type of Information, Data Type, Units, and Store Value, use the same as in the original items.

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • Guest

          #5
          i could solve to accept the calculate item.
          My problem is, the total calculate value is wrong.

          actualy valua as example:
          ---------------------- ÁVG ---- max
          Outgoing traffic 144.47 Kbps 447.93 Kbps
          Incoming traffic 71.73 Kbps 145.36 Kbps
          Total Traffic 1.07 kbps 54.95 kbps

          should not have the right value of total avg: 216,47 AND max: 593,29 ?
          last("net.if......... i take this on expression and as key is use random signs

          what can i do more to calculate the right vlaues ?
          greetings

          Comment

          • alixen
            Senior Member
            • Apr 2006
            • 474

            #6
            Hi,

            Originally posted by emperor
            what can i do more to calculate the right vlaues ?
            Post the whole configuration of your three items because without any detail we are just trying to second guess what you may have done wrong (as selecting the wrong type, as it happened before).

            Regards,
            Alixen
            http://www.alixen.fr/zabbix.html

            Comment

            Working...