Closed Domisiding closed 1 year ago
Hmm interesting, i'll take a look at the script later this evening. I presume that you didn't specify a Zabbix Template under the device type?
Hi, it creates everything on Zabbix side and also sends an update request to the Netbox only without changes. In the device type is everything required inside, the script works fine except for the entry of the HostID in the device itself.
Just checked again to be sure. The fields are correct in the config and still an empty changelog with no changes is sent.
Very odd. Which version of Netbox and Zabbix are you running and can you do a git pull to make sure that we are running the same code?
I am unable to replicate this behavior with Zabbix 6.0.14, Netbox 3.4.7 and the latest version of this script.
What do the logs tell you about this device using the -v flag? And is there a log entry under the journal within Netbox?
We are running the latest version of Zabbix 6.4.1 and NetBox 3.4.7. We have the debugs on and there is no error, but since the servers are internal it runs over http.
Okay can you show me the following information and check the following questions:
I suspect that this must be some user error since i cannot replicate this behavior on multiple installations.
Since the servers are internal it runs over http: this shouldn't make a difference. I run test setups all the time over HTTP as well. However if you are able to replicate the setup on for example a docker based platform than you could debug some more on your side as well.
Hey, Sorry for the late reply.
This error is with every device in the netbox. Everywhere a changelog is created by the user without a change.
I have tested it with several API tokens and all of them have the write permission. Even with my account where I create devices the API key does not work.
Yes, I can manually edit the field with the account when I log in.
I have just seen that the Netbox still runs on the 3.4.3
This is the output with our debugs that we created. It recognizes that there is nothing in the field and after setting and saving it says the content is the ID, but once we look on the web there is nothing and no changes have been made according to the changelog above.
What we just noticed while debugging, no journal is created, but the function is called and there is also no debug from the function
So coming back on this issue after my holiday. I'm sorry but i cannot reproduce this error. There aren't any users who are experiencing the same error as you do.
Due to this i want to close this issue. Should more users report with the same issue then i can hopefully gather multiple points of data to replicate / fix your issue.
We have written our own patch, with which it now works. Just in case other people have the problem. @TheNetworkGuy function.txt
Hello, with the current sync, Netbox is running an update, but nothing is entered.