Commit Graph

84 Commits

Author SHA1 Message Date
Raymond Kuiper
d65fa5b699 Added tag support 2025-02-19 15:56:01 +01:00
Raymond Kuiper
eea7df660a Full usermacro support 2025-02-14 15:18:26 +01:00
Raymond Kuiper
c67180138e cleanup 2025-02-12 12:39:36 +01:00
Raymond Kuiper
c76e36ad38 Split inventory from the device module and started working on vm inventory support 2024-12-19 16:26:18 +01:00
Raymond Kuiper
d0941ff909 🏷️ Changed all occurences of "Netbox" to "NetBox" as per the [NetBox Style Guide](https://netboxlabs.com/docs/netbox/en/stable/development/style-guide/). 2024-12-06 13:51:05 +01:00
Wouter de Bruijn
8b670ba395
Added support for custom CA contexts within ZabbixAPI 2024-12-05 13:59:12 +01:00
TheNetworkGuy
81764b589a Removed some forgotten code lines from testing 2024-11-18 14:11:38 +01:00
TheNetworkGuy
204937b784 Fixed variable name typo 2024-11-13 20:32:47 +01:00
TheNetworkGuy
e0827ac428 Fixed long line linter error 2024-11-13 20:00:50 +01:00
TheNetworkGuy
09a6906a63 Added VM filtering 2024-11-13 19:56:09 +01:00
TheNetworkGuy
56c19d97de Added basic error message when Netbox details are invalid. Fixed logging message for when template context keys are not present. 2024-11-06 15:57:11 +01:00
TheNetworkGuy
ffc2aa1947 Fixed location hostgroup bug 2024-10-31 20:03:09 +01:00
TheNetworkGuy
9417908994 Swapped hostgroup and template calculation since template lookup is a read-only operation and hostgroup lookup could be a read-write operation. 2024-10-31 15:51:33 +01:00
TheNetworkGuy
20096a215b Added HG and template checks for devices and VM's. Temp disabled inventory mapping for VMs 2024-10-30 21:10:22 +01:00
TheNetworkGuy
5093823287 Added some logging and fixed role assignment for VM's 2024-10-30 20:52:28 +01:00
TheNetworkGuy
d598a9739a Fixed whitespace 2024-10-30 13:51:30 +01:00
TheNetworkGuy
7bf72de0f9 Fixed bug where a single host exception would stop the sync. 2024-10-30 13:50:20 +01:00
TheNetworkGuy
66f24e6891 Fixed several bugs, set default interface for VM to agent, fixed several linter errors. 2024-10-30 12:23:15 +01:00
TheNetworkGuy
bff34a8e38 Renamed VM module for python naming convention. Fixed 2 VM hostgroup bugs. Fixed some whitespace in the VM module. 2024-10-30 10:06:29 +01:00
TheNetworkGuy
9f29d2b27b Added basic VM support 2024-10-25 18:46:20 +02:00
TheNetworkGuy
053028b283 Splitted hostgroup generation logic into its seperate module. Changed hostgroup "dev_role" to "role" for VM role prepration. Started work on basic VM class. 2024-10-25 16:02:08 +02:00
TheNetworkGuy
70a5c3e384 Implemented #73 2024-07-25 15:47:09 +02:00
TheNetworkGuy
23997f9423 Properly styled code as suggested in #61. Also implemented #63 2024-06-12 19:02:44 +02:00
TheNetworkGuy
ecec3ee46e Fixed authentication variable problems 2024-06-12 14:57:35 +02:00
TheNetworkGuy
d1e864c75b Fixed hostgroup generation issues, added proxygroup support. 2024-06-12 13:42:21 +02:00
TheNetworkGuy
6f044cb228 Added logic for proxy groups. Only thing left is consistency check 2024-06-11 16:13:45 +02:00
TheNetworkGuy
2e7890784b Changed flow in sync script, started work for Proxy group support and zabbix_utils 2024-06-11 15:11:55 +02:00
TheNetworkGuy
c695353fce Splitted modules up into seperate files. 2024-06-10 20:20:38 +02:00
TheNetworkGuy
e0b473a6d4 Optimized code and also fixed Linter error. 2024-06-05 10:09:26 +02:00
TheNetworkGuy
58d894832e Merge branch 'main' of https://github.com/TheNetworkGuy/netbox-zabbix-sync 2024-05-22 14:34:07 +02:00
TheNetworkGuy
b9713792d7 fixed bug with device removal state 2024-05-22 14:34:03 +02:00
TheNetworkGuy
72fde13ef4 Added functionallity to allow device names with specials characters such as umlauts. 2024-05-22 14:04:42 +02:00
TheNetworkGuy
78b9d5ae8b Fixed trailing white space error. 2024-05-22 10:38:53 +02:00
Twan K
60140b4b74
Merge pull request #56 from q1x/inventory-zero-values
Allow for source inventory fields to have a value of zero
2024-05-22 10:36:11 +02:00
TheNetworkGuy
441d7e7e95 Temporary disabled too-many-arguments error for Pylint. 2024-05-22 09:35:33 +02:00
TheNetworkGuy
c185b7364d Fixes #57. 2024-05-22 09:24:17 +02:00
Raymond Kuiper
e9143eb24c
Update netbox_zabbix_sync.py
Minor bug fix for float or int zero values in inventory fields
2024-04-12 10:38:43 +02:00
Raymond Kuiper
3e638c6f78
Update netbox_zabbix_sync.py
Minor bug fix for empty Netbox to zabbix inventory field mappings.
2024-04-10 14:57:08 +02:00
Raymond Kuiper
634f4b77d5 tweaked exception handling 2024-03-28 09:51:08 +01:00
Raymond Kuiper
c006e7feb5 Let's make pylint happy :) 2024-03-27 20:35:32 +01:00
Raymond Kuiper
091c9746c0 Fixed proxy issue, rewrite of inventory logic (eval was ugly) 2024-03-27 20:33:02 +01:00
Raymond Kuiper
364d376f55 corrected even more linting errors 2024-03-27 16:33:06 +01:00
Raymond Kuiper
ab2a341fa7 Corrected more linting errors 2024-03-27 16:26:15 +01:00
Raymond Kuiper
fbb9eeb48c Corrected linting errors 2024-03-27 16:24:26 +01:00
Raymond Kuiper
5b08d27a5e Added support for syncing Zabbix Inventory, this is also a fix for https://github.com/TheNetworkGuy/netbox-zabbix-sync/issues/44 2024-03-27 15:37:50 +01:00
Raymond Kuiper
583d845c40 revert because of file formatting issue 2024-03-27 15:22:43 +01:00
Raymond Kuiper
27a4a5c6eb Corrected more pylint errors 2024-03-25 11:57:46 +01:00
Raymond Kuiper
537710a4b9 Corrected pylint errors 2024-03-25 11:56:17 +01:00
Raymond Kuiper
71f604a6f6 Added functionality to build full region and site_group paths to be used in hostgroup names. 2024-03-25 11:49:41 +01:00
Raymond Kuiper
0d7c581ee2 fixed undefined-variable 2024-03-08 14:29:12 +01:00