Ad Widget

Collapse

Macro calling item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kionysus
    Junior Member
    • Aug 2011
    • 2

    #1

    Macro calling item

    I've created a user Macro in a template "Template_switch" like such:

    {$IFALIAS.1} -> {Template_switch:switch.snmp.ifAlias.1.last()}

    I've also tried:
    {$IFALIAS.1} -> {:switch.snmp.ifAlias.1.last()}

    and:
    {$IFALIAS.1} -> {:switch.snmp.ifAlias.1.LASTVALUE}

    and:
    {$IFALIAS.1} -> {Template_switch : {$IFALIAS.1} ifAdminStatus.1.last()}

    I've modified an item inside that template to be:

    Item "Template_switch : {$IFALIAS.1} ifAdminStatus.1"
    Host: Template_switch
    Description: {$IFALIAS.1} ifAdminStatus.1
    Key: switch.snmp.ifAdminStatus.1


    However, when I go to Latest Data, I still see the following displayed:

    {$IFALIAS.1} ifAdminStatus.1

    Reading the manual online, it says that user macros are supported in item descriptions. What it doesn't say is are macros/keys supported in user macros or does a user macro require only a text string? Am I missing something?
Working...