Ad Widget

Collapse

Macro into calculated item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skarllot
    Junior Member
    • Oct 2011
    • 21

    #1

    Macro into calculated item

    I'm trying to use macros into calculated item, but it's returning error.


    last("ifInOctets.eth{$ETHG0_0}") + last("ifInOctets.eth{$ETHG0_1}")


    Cannot evaluate function [last()]: item [myhostname:ifInOctets.eth{$ETHG0_0}] not found

    Zabbix 1.8.4
  • skarllot
    Junior Member
    • Oct 2011
    • 21

    #2
    I can't pass thru this yet...

    Comment

    • Yello
      Senior Member
      • Apr 2011
      • 309

      #3
      Hi,
      Where do the two items and the calculated item exist? In a host, in a template? If in a template, are they in the same template? And where is the macro set?


      Regards,
      David

      Comment

      • mgapinski
        Junior Member
        Zabbix Certified Specialist
        • Aug 2011
        • 3

        #4
        The probable reason for this is you cannot use usermacros in item's key name with the exception of parameters so: ifInOctets.eth{$MACRO} will not work, but ifInOctets["eth{$MACRO}"] should work

        Cheers,
        Martin

        Comment

        Working...