After upgrading to version 2.4, the message is sent by default as an attachment (in the 2.2 version when the message is sent as text), causing some mail clients to not recognize the message content
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/41/wKiom1Z49sbDFu_jAAAfpzgm-gc432.png "style=" float: none; "title=" 1.png "alt=" Wkiom1z49sbdfu_jaaafpzgm-gc432.png "/>
Reason:
Attachments are dat suffixes, download open found content is the alarm body, drag files to open under Linux to find the end of each line more than ^m
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/40/wKioL1Z49teAYsxyAAAL9eIaQAM440.png "style=" float: none; "title=" 2.png "alt=" Wkiol1z49teaysxyaaal9eiaqam440.png "/>
Inconsistent line breaks under Linux and Windows
Workaround:
Add line break substitution in the script
#!/bin/bashbody= ' echo $3|tr ' \ r ' \ n ' echo ' $body ' |mail-s ' $ $ '
This article is from the "10988567" blog, please be sure to keep this source http://10998567.blog.51cto.com/10988567/1727187
Zabbix Mail Attachment issues