Netbox: Config context by tags

Created on 3 Nov 2019  路  4Comments  路  Source: netbox-community/netbox

Environment

  • Python version: 3.7.3
  • NetBox version: 2.6.6

Proposed Functionality

Add to the config context assignment field with tags

Use Case

I use the tag "monitored_by_zabbix" for devices and VMs wich will be monitoring in our Zabbix system.
I want to create config contex with config for Zabbix for this devices/vms

Database Changes

Yes

External Dependencies

None

accepted feature

Most helpful comment

I believe I have a somewhat similar usecase, so will chime in.
With these changes I'd be able to:

  1. Get a list of hosts using Netbox plugin for Ansible;
  2. Create Ansible groups using tag names and add my hosts to these groups;
  3. Add tag's Config Context to group variables;
  4. Create/Update hosts in Zabbix using Zabbix plugin for Ansible.

Basically, it would allow me to use tags as Ansible groups, and Config Contexts as group_vars.
Or I could simply store a more general Zabbix config for, say, a Tenant or a Site, and use tag's CC to store a boolean - whether to enable monitoring for this host.

All 4 comments

Could you give us more detail of your usecase step-by-step?

I believe I have a somewhat similar usecase, so will chime in.
With these changes I'd be able to:

  1. Get a list of hosts using Netbox plugin for Ansible;
  2. Create Ansible groups using tag names and add my hosts to these groups;
  3. Add tag's Config Context to group variables;
  4. Create/Update hosts in Zabbix using Zabbix plugin for Ansible.

Basically, it would allow me to use tags as Ansible groups, and Config Contexts as group_vars.
Or I could simply store a more general Zabbix config for, say, a Tenant or a Site, and use tag's CC to store a boolean - whether to enable monitoring for this host.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

I am taking this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markve-sa picture markve-sa  路  4Comments

VictorJ76 picture VictorJ76  路  3Comments

aarjbdea picture aarjbdea  路  3Comments

billyzoellers picture billyzoellers  路  3Comments

tyler-8 picture tyler-8  路  3Comments