Ad Widget

Collapse

Zabbix 6..0.x - Unable to change SNMP Interface on Discovered Item Prototype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srb
    Junior Member
    • Sep 2020
    • 10

    #1

    Zabbix 6..0.x - Unable to change SNMP Interface on Discovered Item Prototype

    Hi,
    We use Zabbix to monitor OSPF and BGP on our FortiGate firewalls using SNMP. The Firewalls are using Virtual Domains (VDOM) to isolate traffic and as per FortiGate's instruction to be able to access data within a VDOM, you have to change the SNMP community string to the format "CommunitySting-VDOM" by appending the name of the VDOM to the Community String, so to access the VDOM called "AWS" via SNMP, I need to pass a community string to "MyCommunityString-AWS".
    Zabbix has a Host item for the Firewall with multiple SNMP interfaces, one for each community string that requires access to a VDOM, E.g. "MyCommunityString-AWS"
    In Zabbix 5.4 I was able to create Discovery Rules and Item Prototypes and change the SNMP Interface on the Discovery Rule and on the Item Prototype.
    In Zabbix 6.0.6 I am able to change the Host Interface on the Discovery Rule, but the drop down on the Item Prototype does not work.

    Please see attached for examples of the issue.
    Zabbix 5.4, I'm able to change the Host Interface on both the Discovery Rule and the Item Prototype
    Zabbix 6.0, I'm able to change the Host Interface on the Discovery Rule, however, the Host Interface on the Item Prototype does not allow me to drop down and select the appropriate SNMP Host Interface

    Has anyone managed to work around this?
    Attached Files
  • srb
    Junior Member
    • Sep 2020
    • 10

    #2
    If anyone else runs into this UI bug, I've worked around it by using API to update the correct Interface on each Item Prototype

    Get Firewall SNMP Interfaces:
    {
    "jsonrpc": "2.0",
    "method": "hostinterface.get",
    "params": {
    "output": "extend",
    "hostids": "100001"
    },
    "auth" : "XXXXXXX",
    "id": 1
    }


    Change Interface on Item Prototype:
    {
    "jsonrpc": "2.0",
    "method": "itemprototype.update",
    "params": {
    "itemid": "11000",
    "interfaceid": "100"
    },
    "auth" : "XXXXXXX",
    "id": 1
    }

    Comment

    • bilias
      Junior Member
      • Aug 2022
      • 1

      #3
      +1 on this.
      API update works, but it's a PITA.

      Could be nice if we could update directly from web GUI.
      Seems like a bug to me, since it allows changing the discovery rule but not the item prototype under it.

      Comment

      Working...