I'll start by saying I have searched these forums and beyond to find a solution to this and found lots of useful hints but no magic bullet yet.
I've been trying to set up email notifications using script media type for the purpose of using a gmail account.
Script taken from here: http://dev.aperto.fr/projects/zabbix..._notifications
I have the script here: /etc/zabbix/alert.d/zext_msmtp.sh - with 755 permissions
The script works as expected if I run it from the command line as any user
The file /etc/zabbix/zabbix_server.conf has the line
I have created a media type
Description: zext_msmtp
Type: script
Script name: zext_msmtp.sh
I have added the media to my user

I have created an Action for Triggers with Trigger value = "PROBLEM"

And I have specified some triggers that will always trip true:
e.g. Server is Up {<myservername>:agent.ping.last(0)}=1
I can see that zabbix is registering the triggers and trying to process the action but it only gets as far as saying "In Progress"

I have also set up a jabber account to test if that works (thinking it is a more straight forward process) but that also only says "In Progress"
Is there something wrong with my zabbix? note: Zabbix server is running value No (this has always been the case
)
I am running version 1.8.1 , will an upgrade help here ? has anything like this been experienced before?
Much thanks in advance for any responses.
I've been trying to set up email notifications using script media type for the purpose of using a gmail account.
Script taken from here: http://dev.aperto.fr/projects/zabbix..._notifications
I have the script here: /etc/zabbix/alert.d/zext_msmtp.sh - with 755 permissions
The script works as expected if I run it from the command line as any user
Code:
$ ./zext_msmtp.sh <recipient> <subject> <message>
The file /etc/zabbix/zabbix_server.conf has the line
Code:
AlertScriptsPath=/etc/zabbix/alert.d/
I have created a media type
Description: zext_msmtp
Type: script
Script name: zext_msmtp.sh
I have added the media to my user

I have created an Action for Triggers with Trigger value = "PROBLEM"

And I have specified some triggers that will always trip true:
e.g. Server is Up {<myservername>:agent.ping.last(0)}=1
I can see that zabbix is registering the triggers and trying to process the action but it only gets as far as saying "In Progress"

I have also set up a jabber account to test if that works (thinking it is a more straight forward process) but that also only says "In Progress"
Is there something wrong with my zabbix? note: Zabbix server is running value No (this has always been the case
)I am running version 1.8.1 , will an upgrade help here ? has anything like this been experienced before?
Much thanks in advance for any responses.

, I did look a zabbix-server.log but found it very daunting and couldn't see any reference to my script.
Comment