Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Not working with Zabbix 5 #1

Open
solick opened this issue Aug 29, 2020 · 3 comments
Open

Not working with Zabbix 5 #1

solick opened this issue Aug 29, 2020 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@solick
Copy link

solick commented Aug 29, 2020

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
Copy link
Owner

zone11 commented Aug 29, 2020

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
Copy link
Author

solick commented Aug 29, 2020

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
Copy link
Owner

zone11 commented Aug 31, 2020

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

@zone11 zone11 added bug Something isn't working question Further information is requested labels Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants