Hi All,
Mail to gmail account via script is configured in zabbix. I'm able to receive mail on gmail account but with the subject and body which I've given in script parameter.
This is creating one issue as on one host multiple triggers are there but mail is coming with same subject and body. I've seen there is default subject and default body while configuring actions but these values are coming on GUI Reports -> Action log but not in mail. Is there any method these details are also shown in mail?
PFA of screenshot for mail and action log
PFB the script used to send mail :-
#!/bin/bash
to=$1
subject=$2
body=$3
cat <<EOF | mail -s "$subject" "$to"
$body
EOF
Thanks in advance for your support !!
Mail to gmail account via script is configured in zabbix. I'm able to receive mail on gmail account but with the subject and body which I've given in script parameter.
This is creating one issue as on one host multiple triggers are there but mail is coming with same subject and body. I've seen there is default subject and default body while configuring actions but these values are coming on GUI Reports -> Action log but not in mail. Is there any method these details are also shown in mail?
PFA of screenshot for mail and action log
PFB the script used to send mail :-
#!/bin/bash
to=$1
subject=$2
body=$3
cat <<EOF | mail -s "$subject" "$to"
$body
EOF
Thanks in advance for your support !!