diff --git a/keep/providers/zabbix_provider/zabbix_provider.py b/keep/providers/zabbix_provider/zabbix_provider.py index b7bca0ad3..9ca8d7b14 100644 --- a/keep/providers/zabbix_provider/zabbix_provider.py +++ b/keep/providers/zabbix_provider/zabbix_provider.py @@ -594,6 +594,8 @@ def _format_alert( event_id = event.get("id") trigger_id = event.get("triggerId") zabbix_url = event.pop("ZABBIX.URL", None) + hostname = event.get("HOST.NAME") + ip_address = event.get("HOST.IP") if zabbix_url == "{$ZABBIX.URL}": # This means user did not configure $ZABBIX.URL in Zabbix probably @@ -638,6 +640,9 @@ def _format_alert( url=url, lastReceived=last_received, tags=tags, + hostname=hostname, + service=hostname, + ip_address=ip_address, )