Zabbix 6.0 - python-pushsfaer

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows Store
Homepage
sbaali
Posts: 1
Joined: 10. Jun 2022, 10:07

Zabbix 6.0 - python-pushsfaer

Postby sbaali » 10. Jun 2022, 10:17

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
Attachments
2022-06-10_12-15.png
2022-06-10_12-15.png (8.55 KiB) Viewed 2036 times

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Zabbix 6.0 - python-pushsfaer

Postby admin » 10. Jun 2022, 10:45

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
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10


Who is online

Users browsing this forum: LarryBic and 34 guests