讨论社区

zabbi5.0无法使用cloudalert

2020-08-11 14:40:19 INFO [ZabbixActionParams]: This is the test message from Zabbix

2020-08-11 14:40:19 INFO [ItsmAlertResponse]: {"result":"failed","message":"数据无法解析,不是一个标准json格式","data":"data:This is the test message from Zabbix, is not a json","totalCount":0,"code":751}


0 人关注了该问题 关注

0

早早 • 1月前

zabbix5.0目前需要手动创建个cloudalert的动作,然后在defaultmessage中将文本设置成如下内容

{'app':'生成的appkey','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':'1130','service':'{ITEM.NAME}','ip':'{HOST.IP}','itemName':'{ITEM.NAME}','itemValue':'{ITEM.VALUE}'}



恢复:

{'app':生成的appkey','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':'1130','service':'{ITEM.NAME}','ip':'{HOST.IP}','itemName':'{ITEM.NAME}','itemValue':'{ITEM.VALUE}'}



0 个讨论

您需要登录后才可回复
您需要登录后才可以回复