I was trying to configure the notify_pushbullet alertscript, but it don't seems to trigger when any alert arise. It seems that zabbix is not calling that script on the specified event occurred. I have checked all possible things and even tried manually using that alertscript and surprisingly it works via ssh but not with zabbix. Following are the configurations I made.
# cat /etc/zabbix/zabbix_server.conf | grep AlertScripts
### Option: AlertScriptsPath
# AlertScriptsPath=${datadir}/zabbix/alertscripts
AlertScriptsPath=/usr/lib/zabbix/alertscripts
I placed the alert script in the alertscriots folder. notify_pushbullet.py
Configured the media type script to Script name: "notify_pushbullet.py"
Also added the pushbullet token for the user.
Checking over the script log, it seems that pushbullet does not invoke the script. While manually calling that script using ssh it works:
./notify_pushbullet.py "o.XXXXXXXXXXXXXXXXXXXXXXXXXXX" "test" "test"
[Wed Sep 05 10:36:00 2018] Success: Message sent with AccessToken [o.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] to device [all]!
Can anyone give me any input over this, how to invoke the alertscripts with zabbix.
# cat /etc/zabbix/zabbix_server.conf | grep AlertScripts
### Option: AlertScriptsPath
# AlertScriptsPath=${datadir}/zabbix/alertscripts
AlertScriptsPath=/usr/lib/zabbix/alertscripts
I placed the alert script in the alertscriots folder. notify_pushbullet.py
Configured the media type script to Script name: "notify_pushbullet.py"
Also added the pushbullet token for the user.
Checking over the script log, it seems that pushbullet does not invoke the script. While manually calling that script using ssh it works:
./notify_pushbullet.py "o.XXXXXXXXXXXXXXXXXXXXXXXXXXX" "test" "test"
[Wed Sep 05 10:36:00 2018] Success: Message sent with AccessToken [o.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] to device [all]!
Can anyone give me any input over this, how to invoke the alertscripts with zabbix.
Comment