Fairly new to Zabbix and have been tasked with configuring an option to generate Jira tickets for any Problems raised in our environment with a High or above priority.
I've located what should be a viable script for this and after some tweaking/testing, it appears it will run (from the command line at least!) without error when started from Python3 but not from Python(2.7) due to some pip module dependencies not being met. I had ensured the module was installed but still get an import error.
As such I'm wondering if it's possible to get Zabbix to use Pyhton3 instead of Python to execute the "Script" media type when it's a .py file.
I did see one suggestion previously for editing the shebang at top of script however that doesn't seem to have helped.
I've located what should be a viable script for this and after some tweaking/testing, it appears it will run (from the command line at least!) without error when started from Python3 but not from Python(2.7) due to some pip module dependencies not being met. I had ensured the module was installed but still get an import error.
As such I'm wondering if it's possible to get Zabbix to use Pyhton3 instead of Python to execute the "Script" media type when it's a .py file.
I did see one suggestion previously for editing the shebang at top of script however that doesn't seem to have helped.
Comment