如果你不记得默认消息模版时,直接替换成如下内容,修改 appkey 即可恢复为默认模版
触发
{'app':'change-to-your-key','eventId':'{HOST.HOST}-{TRIGGER.ID}','eventType':'trigger','alarmName':'{TRIGGER.NAME}','entityName':'{HOSTNAME}','entityId':'{HOST.HOST}-{TRIGGER.ID}','alarmContent':'{HOST.HOST} {ITEM.NAME}:{ITEM.VALUE} {TRIGGER.NAME}','priority':'{TRIGGER.NSEVERITY}','host':'{HOST.HOST}','tag':[{'hostgroups':['{TRIGGER.HOSTGROUP.NAME}']}],'agentVersion':'1120','service':'{ITEM.NAME}','ip':'{HOST.IP}','itemName':'{ITEM.NAME}','itemValue':'{ITEM.VALUE}'}
恢复
{'app':'change-to-your-key','eventId':'{HOST.HOST}-{TRIGGER.ID}','eventType':'resolve','alarmName':'{TRIGGER.NAME}','entityName':'{HOSTNAME}','entityId':'{HOST.HOST}-{TRIGGER.ID}','alarmContent':'{HOST.HOST} {ITEM.NAME}:{ITEM.VALUE} {TRIGGER.NAME}','priority':'{TRIGGER.NSEVERITY}','host':'{HOST.HOST}','tag':[{'hostgroups':['{TRIGGER.HOSTGROUP.NAME}']}],'agentVersion':'1120','service':'{ITEM.NAME}','ip':'{HOST.IP}','itemName':'{ITEM.NAME}','itemValue':'{ITEM.VALUE}'}