Ad Widget

Collapse

Macros on Low-level discovery

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

    Macros on Low-level discovery

    Hello,

    I'm using low-level discovery rule for snmp items on diferent machines. All works fine. I get the correct values. My question is about monitoring. I don't see on the the prototypes triggers name or prototypes graph name the value of a normal macro {HOST.HOST} for example but {#SNMPVALUE} or {#SNMPINDEX} returns their values.

    Then as a result I obtain a very large list of graphs with the same name for port1, port 2... But I need to see the hostname to localize its ports.

    Used expression on graph name: UDP statistics on{HOST.HOST} Serial Port{#SNMPINDEX}
    Expected result: UDP statistics on Machine1 Serial Port1
    Real result: UDP statistics on {HOST.HOST} Serial Port1

    I've been searching for another macros to use on LLD SNMP and try to use $1 expression. But the result is the same only works {#SNMPVALUE} & {#SNMPINDEX}

    Could anyone answer if we can use anothers macro expressions? or an alternative method to add it?

    For this issue We have 35 machines with 4 port serial each one and we want to monitor RX, TX, Errors traffic. (about 420 items).
    We are using low-level discovery rules because the port used&utilization changes on each machine.

    Thanks very much.
    Alberto.

    #2
    Fix on 2.2.0

    Posted by Steveboyson Senior Member
    (https://www.zabbix.com/forum/member.php?u=204867)

    Fixed on
    http://www.zabbix.com/rn2.2.0.php.

    I haven't tried it yet.

    Anyone has tried it?


    Thanks

    Comment


      #3
      Not supported (https://www.zabbix.com/documentation...ed_by_location)

      The only macro currently supported in graph names is {host:key.func(param)}. I've used the API to generate specific graphs with the appropriate names. It sucks, but better than nothing...

      Comment


        #4
        In the same link....

        But, is this explanation not working? or directly not applies.

        7 Supported since Zabbix 2.2.0. Only the avg, last, max and min functions, with seconds as parameter are supported within this macro in graph names. The {HOST.HOST<1-9>} macro can be used as host within the macro. For example:

        {Cisco switch:ifAlias[{#SNMPINDEX}].last(0)}
        {{HOST.HOST}:ifAlias[{#SNMPINDEX}].last(0)}
        [/B][/B][/I]

        Comment


          #5
          It means you can use those within the {host:key.func(param)} macro. E.g.

          {{HOST.HOST}:ifAlias[{#SNMPINDEX}].last(0)}
          {{HOST.HOST}:net.if.in[{#IFNAME}].max(#3)}

          You can't use them outside of this macro, which sucks

          Comment

          Announcement

          Collapse
          No announcement yet.
          Working...
          X