Page 1 of 1

Zabbix 6.0 - python-pushsfaer

Posted: 10. Jun 2022, 10:17
by sbaali
Hello,
We are using Zabbix 6.0 with SMS notifications, we want to switch to Pushsafer.
The python script "python-pushsafer" returns an error (line 81 def _send(self, payload: dict):)
Could you help me to understand why?

Error Zabbix :
Traceback (most recent call last):
File "/usr/lib/zabbix/alertscripts/zabbix-pushsafer.py", line 20, in <module>
import pushsafer
File "/usr/local/lib/python2.7/dist-packages/pushsafer.py", line 81
def _send(self, payload: dict):
^
SyntaxError: invalid syntax

Regards,
Sam

Re: Zabbix 6.0 - python-pushsfaer

Posted: 10. Jun 2022, 10:45
by admin
Hi,

it seems you use an old python version (2.7)
I developed and test the python script for verion 3.6 and above!

Please try to update python and try again to use pushsafer in zabbix.

Kevin