Closed khoavan001 closed 4 years ago
please check if the python pushsafer package installed correctly. You can test it like described here: https://github.com/appzer/python-pushsafer
hi,
successful install package.
try to test script with the parameters as below:
sendto
no, please try this one also: https://github.com/appzer/zabbix-pushsafer/blob/master/zabbix-pushsafer.py
I also get the same error. When i run it through the command line everything is OK thought
did you try all steps above?
Yes I have.
what script you tried? zabbix-pushsafer.py or zabbix-pushsafer-centOS.sh! What operating system you use?
I have used both zabbix-pushsafer.py and zabbix-pushsafer-centOS.sh with the same result
File "/usr/lib/zabbix/alertscripts/zabbix-pushsafer-centOS.sh", line 20, in <module>
import pushsafer
ImportError: No module named pushsafe
Ubuntu 18.04.5 LTS
As i said, running it from the cmd the script works fine.
THanks for your time!!
please try to run the pushsafer.py script on the CLI to test if script work and/or plugin works! For it works fine!
python zabbix-pushsafer.py PRIVATEKEY MESSAGE TITLE
In the cli it works fine in the zabbix it is not. Your library works fine. in conjuction with the zabbix server it is not.
please try to get help in the zabbix forum, i do not have an anwser for that issue!
Kevin
hi, i am using CentOS 7. i have already install : pip install python-pushsafer . when run script ./zabbix-pushsafer-centOS.sh , it showing me error: ImportError: No module named pushsafer
[root@localhost alertscripts]# ./zabbix-pushsafer-centOS.sh Traceback (most recent call last): File "./zabbix-pushsafer-centOS.sh", line 20, in
import pushsafer
ImportError: No module named pushsafer
Can you help me? any packages is needed?