Ad Widget

Collapse

Issue faced in configuration of mail via script in zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akansha123
    Member
    • Jun 2016
    • 54

    #1

    Issue faced in configuration of mail via script in zabbix

    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 !!
    Attached Files
Working...