Hi there !
I have made all the steps to configure zabbix to execute an alert script (message.sh) when a "trigger" has been "triggered", but the script doesn't work.
message.sh ( located at /usr/lib/zabbix/alertscripts/ )
And when i see in the log action section, the message is marked as sent, or executed. But, when a type: cat data.txt the file is empty.
What i'am doing wrong?
I have made all the steps to configure zabbix to execute an alert script (message.sh) when a "trigger" has been "triggered", but the script doesn't work.
message.sh ( located at /usr/lib/zabbix/alertscripts/ )
Code:
#!/bin/bash to=$1 subject=$2 body=$3 echo $to >> data.txt echo $subject >> data.txt echo $body >> data.txt echo "hello world" >> data.txt
What i'am doing wrong?
Comment