Ad Widget

Collapse

Macro expansion in discovery template graph names

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zbxgo
    Junior Member
    • May 2013
    • 4

    #1

    Macro expansion in discovery template graph names

    Hi,

    I'm running trunk 35903 to and trying to test/use the macro expansion in graph names. I can't seem to get the following to resolve to anything other than UNKNOWN:

    Traffic on interface {#SNMPVALUE} - {Template Juniper Switch SNMP Interfaces:ifAlias[{#SNMPVALUE}].last(0)}

    The templates and discovery rules are just a copy of the original SNMP device/SNMP interfaces templates with some changes to exclude certain interface names, etc.

    Any pointers appreciated!
  • zbxgo
    Junior Member
    • May 2013
    • 4

    #2
    Solved

    After much messing around I finally figured out the syntax for it to work. For anyone who is interested it was:

    Traffic on interface {#SNMPVALUE} - {{HOST.HOST}:ifAlias[{#SNMPVALUE}].last(0)}

    Comment

    • harmonica
      Senior Member
      • Jan 2009
      • 251

      #3
      Thanks for share

      Comment

      • harmonica
        Senior Member
        • Jan 2009
        • 251

        #4
        I,

        Is it possible to see the full alias on the name of the graph? We use long alias in some interfaces, and are truncated.

        Regards
        Last edited by harmonica; 29-08-2013, 11:42.

        Comment

        • harmonica
          Senior Member
          • Jan 2009
          • 251

          #5
          Any feedback related to my question?

          Comment

          Working...