TheNetworkGuy / netbox-zabbix-sync

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

Sync VM #17

Closed taofineberg closed 1 year ago

taofineberg commented 1 year ago

I have noticed that this only sync device and not VM's

Could there be an option to also sync VM's

taofineberg commented 1 year ago

Looking into this in more detail 1) It would be nice if you could assign a Zabbix template directly on the device and not only on the device type a. Use case would be device type DL 280 server. This could be a windows or Linux install and would require a different template. i. I have tried this but if there is no template added to the device type it fails , this makes sense as I am sure it is only looking on the device type for the zabbix_template. The workaround would be to make a DL 280-windows , DL 280-linux but this does not seem like a great way forward. 2) To add a VM you would also add the custom fields zabbix_hostid and zabbix_template to Virtualization > virtual machine . This way you could allocate a different template 3) Adding multiple templates would be usefully but not as much of a big issue as the workaround is make a template and link all of the required templates directly in Zabbix

TheNetworkGuy commented 1 year ago

This project was never intended to synchronize VM's. A couple of reasons but mostly;

I'll look into the options but VM's require a whole different API point, different checks, different custom fields. Basically rewriting a shitload of code. I'm currently very busy in my own time so don't expect the scope of this project to change anytime soon, unless someone else wants to start with the work. At the same time it could be interesting so i won't close the issue either. Just very busy a.t.m. and cannot spend any time with such a big feature request.

TheNetworkGuy commented 1 year ago

So i've looked into this and there are (mostly) 2 deal breakers.

So for right now i will not implement VM sync. This doesn't mean that it will never be implemented but it does mean that other more important issues and enhancements are processed before this.