TheNetworkGuy / netbox-zabbix-sync

Python script to synchronise Netbox devices to Zabbix.
MIT License
109 stars 27 forks source link

Custom SNMP comunity #21

Closed KIvanov-1984 closed 1 year ago

KIvanov-1984 commented 1 year ago

Hello, we use non-standard communities for SNMP, how to add them to the script?

We use 5 types of community for different types of devices

TheNetworkGuy commented 1 year ago

You can use config context for this. This has been implemented specifically for use cases such as yours where you can define the config context on each of your different device types.

{
    "zabbix": {
        "snmp": {
            "community": "SecretCommunity123"
        }
    }
}

For more information on config context: https://docs.netbox.dev/en/stable/models/extras/configcontext/

TheNetworkGuy commented 1 year ago

Since i haven't received any feedback over the last 2 weeks i will close this issue for now.