I'm not sure if it's my lack of python knowledge or the code, so bear with me...
I've spent ages working through issues trying to get this template and .py file working with Zabbix 6.2 monitoring Ubuntu 20 and FMS 19.5 and 19.6.
I keep getting errors in Zabbix to do with the
I read that Ubuntu 20 dropped support for the requests module in zabbix 2.7
I tried using the python3 requests module by changing:
import requests
from requests.auth import HTTPBasicAuth
import sys
to
import sys
sys.path.append('/usr/lib/python3/dist-packages')
import requests
from requests.auth import HTTPBasicAuth
However zabbix is still returning an error:
`Preprocessing failed for: Traceback (most recent call last):. File "/etc/zabbix/scripts/fms_config.py", line 99, in <modul...
- Failed: cannot extract value from json by path "$.config.DatabaseRootPath": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'Traceback (most recent call last):
File "/etc/zabbix/scripts/fms_config.py", line 99, in
config = requests.get(config_url, headers=heade`
Line 99 is: config = requests.get(config_url, headers=headers, verify=False)
Someone who know what they're doing will probably see the issue straight away... that person is not me.
Any help would be greatly appreciated!