zone11 / ttn-zabbix-gw

Monitor your TTN Gateway with ZABBIX using the TTN NOC API
2 stars 0 forks source link

Not working with Zabbix 5 #1

Open solick opened 4 years ago

solick commented 4 years ago

Hi just tried your template but it is not working with Zabbix 5. Although there seems to be the necessity to install modules for the python script and the script itself needs to be made executable.

Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "Traceback (most recent call last):
File "/usr/lib/zabbix/externalscripts/ttn-gw-info.py", line 3, in <module>
import sys, requests, json, datetime
ImportError: No module named requests"

After installing requests manually and make the script executable I cannot see further errors in the zabbix_server log but still don't see the values.

Mannual execution at the server shows the correct values.

zone11 commented 4 years ago

The requirements for Python 2.7 an the modules is described in the README.me

I'm running Zabbix 5.0.2 with this template and monitoring 6 gateways at the moment. I don't see any issues.

Do you have any informations to share showing some kind of error?

solick commented 4 years ago

the problem is I don't see any errors but still no latest data. Edit:

I removed the gateway and added it again.

Strange behavior. Zabbix shows the error as mentioned above while local execution of the script works fine.

zone11 commented 4 years ago

I added an exported template from v5 to the repository. Can you please give it a try?