我尝试更改电子邮件主题和目的地,但不更改电子邮件内容,使用userdata "EMAIL_SUBJECT_ENDU"
和userdata "EMAIL_DESTINATION"
。
如果你想添加一个文档链接到电子邮件警报,那么你可以把它放在评论字段中。
的例子:
set $(subject) concat("JobProgress - ", value, ": Batch(es) Has Stalled")
set $(comment1) "Please Refer to Knowledge Base - http://go.answers.net/12345"
if value > 0 then
delay 1 samples
userdata "EMAILS" "Alerts@restricted.com"
userdata "SUBJECT" $(subject)
userdata "LONG_COMMENT" $(comment1)
severity critical
run "EmailAlert"
else
severity ok
endif