Ad Widget

Collapse

How to pass LLD macro to SNMP community

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kinu
    Junior Member
    • Jun 2021
    • 8

    #1

    How to pass LLD macro to SNMP community

    I want to make Zabbix send a SNMP query with a community {#VRF}@{$SNMP_COMMUNITY} so that I can get per VRF (or Virtual Router in Juniper) information.
    I tried to use LLD to get VRF name (succeeded) and pass it to SNMP community field of "Item prototype", but SNMP failed because of timeout.
    According to logs, Zabbix seemed to send a SNMP query with a community {#VRF}@public where {#VRF} was not filled with LLD macro correctly.
    Can't we pass LLD macro to SNMP community?
    And are there any good way to achieve my goal?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    In similar situation I ended up creating one SNMP interface per VRF and then duplicating the discovery rules per VRF, using the dedicated SNMP interfaces.

    I'm also interested in a better way.

    Markku

    Comment

    • kinu
      Junior Member
      • Jun 2021
      • 8

      #3
      This problem was solved.
      I used another external script for Item prototype that receive {#VRF} as a key and could get the per VRF information.

      Comment

      Working...