I have installed zabbix and running an external script - here is the steps I followed :
- created a /etc/zabbix/externalscripts directory with correct rights
- copied the script to this directory,
- On web interface
Administration
->Scripts
->new script
In thecommands
section - >/usr/lib/zabbix/externalscripts/check.py https://mywebsite.com
- Also create an item with type
External Check
and key is the file name of the scriptcheck.py
and type of information isNumeric
- Create a
graph
- > added the item I created above to plot - but the status already saysNot Supported
. If I change the type to character it never shows up in the items.
So now I get an error in the logs
ÏndexError:list index out of range]is not suitable for value type [numeric unsigned] and data type [decimal]
What I have checked:
I ran the script from the command prompt and it executes with the result:
OK, Total Resp Time: 8334.55ms;|8321.55
I am not sure what else I need to check. Have changed the type to Float
etc without any help.
The permissions to the directory is fine.
Any help would be appreciated.
zabbix version 3.2 running on centos 7