Source
throw 'Incorrect "event_update_status" parameter given' + params.event_update_status + '\nMust be 0 or 1.';
zabbix_export
version'7.0'
media_types
name Mattermost
type WEBHOOK
parameters
name alert_message
value'{ALERT.MESSAGE}'
name alert_subject
value'{ALERT.SUBJECT}'
name bot_token
value'<YOUR BOT TOKEN>'
name discovery_host_dns
value'{DISCOVERY.DEVICE.DNS}'
name discovery_host_ip
value'{DISCOVERY.DEVICE.IPADDRESS}'
name event_date
value'{EVENT.DATE}'
name event_id
value'{EVENT.ID}'
name event_nseverity
value'{EVENT.NSEVERITY}'
name event_opdata
value'{EVENT.OPDATA}'
name event_recovery_date
value'{EVENT.RECOVERY.DATE}'
name event_recovery_time
value'{EVENT.RECOVERY.TIME}'
name event_severity
value'{EVENT.SEVERITY}'
name event_source
value'{EVENT.SOURCE}'
name event_tags
value'{EVENT.TAGS}'
name event_time
value'{EVENT.TIME}'
name event_update_date
value'{EVENT.UPDATE.DATE}'
name event_update_status
value'{EVENT.UPDATE.STATUS}'
name event_update_time
value'{EVENT.UPDATE.TIME}'
name event_value
value'{EVENT.VALUE}'
name host_ip
value'{HOST.IP}'
name host_name
value'{HOST.HOST}'
name mattermost_url
value'<YOUR MATTERMOST URL>'
name send_mode
value alarm
name send_to
value'{ALERT.SENDTO}'
name trigger_description
value'{TRIGGER.DESCRIPTION}'
name trigger_id
value'{TRIGGER.ID}'
name zabbix_url
value'{$ZABBIX.URL}'
status DISABLED
attempts'1'
script