Ad Widget

Collapse

Item value used as macro value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n0pe
    Junior Member
    • May 2021
    • 2

    #1

    Item value used as macro value

    Hi there,

    I am new to Zabbix so this may be obvious to some but I need a hand.

    I have devices in the field I am trying to receive traps from. Because these devices are sometimes behind NAT'ed addresses or other firewalls, I want to be able to dynamically assign the SNMP agent IP address for these hosts using existing items that are assigned to each host.

    For example, we may have a device send a trap to the server using an address that would never otherwise be used because while it is assigned as a WAN side IP on the device, we're not using it to connect to the Zabbix server (a VPN is used). The devices may send a trap to the server from :10.x.x.x however the server will not recognize the host and can't assign the trap to the appropriate device.

    First, I do have items that are pulling this WAN-side IP assigned for each host. I just need to figure out a way to utilize this item value as the IP address in my SNMP agent definition.

    A solution I thought could work is to use a macro as the IP address for the SNMP agent defined on each host. In order to do this, I'm thinking I may need to have a macro pull the value from an item on the host and dynamically update a macro such as {$WAN.IP}. Is this possible, and if so how would I go about doing this?

    Any other suggestions would be super helpful.

    Thanks in advance,
  • n0pe
    Junior Member
    • May 2021
    • 2

    #2
    Bump. Anyone able to help me out with this?

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      It's a popular thing to ask, you are welcome to vote for and follow https://support.zabbix.com/browse/ZBXNEXT-4449

      Comment

      Working...