mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-14 01:41:25 -06:00
Updated README with Proxy details and -p flag
This commit is contained in:
parent
135c04af98
commit
92e9a1149c
13
README.md
13
README.md
@ -22,7 +22,7 @@ Optional:
|
|||||||
| -t | tenant | Add the tenant name to the hostgroup format (Tenant/Site/Manufacturer/Role) |
|
| -t | tenant | Add the tenant name to the hostgroup format (Tenant/Site/Manufacturer/Role) |
|
||||||
| -s | secret | Use Netbox secrets if present on device for SNMP parameters
|
| -s | secret | Use Netbox secrets if present on device for SNMP parameters
|
||||||
| -v | verbose | Log with debugging on. |
|
| -v | verbose | Log with debugging on. |
|
||||||
|
| -p | proxy-power | Force a full proxy sync. USE WITH CAUTION, see "Set proxy within Netbox" for more information |
|
||||||
|
|
||||||
#### Logging
|
#### Logging
|
||||||
Logs are generated under sync.log, use -v for debugging.
|
Logs are generated under sync.log, use -v for debugging.
|
||||||
@ -56,6 +56,17 @@ And this field for the Zabbix template
|
|||||||
* Default: null
|
* Default: null
|
||||||
* Object: dcim > device_type
|
* Object: dcim > device_type
|
||||||
|
|
||||||
|
#### Set proxy within Netbox
|
||||||
|
You can set the proxy for a device using the 'proxy' key in config context.
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"zabbix": {
|
||||||
|
"proxy": "yourawesomeproxy.local"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Because of the posible amount of destruction when setting up Netbox but forgetting the proxy command, the sync works a bit different. By default everything is synced except in a situation where the Zabbix host has a proxy configured but nothing is configured in Netbox. To force deletion and a full sync, use the -p flag.
|
||||||
|
|
||||||
#### Set interface parameters within Netbox
|
#### Set interface parameters within Netbox
|
||||||
When adding a new device, you can set the interface type with custom context.
|
When adding a new device, you can set the interface type with custom context.
|
||||||
Due to Zabbix limitations of changing interface type with a linked template, changing the interface type from within Netbox is not supported and the script will generate an error.
|
Due to Zabbix limitations of changing interface type with a linked template, changing the interface type from within Netbox is not supported and the script will generate an error.
|
||||||
|
Loading…
Reference in New Issue
Block a user