Zabbix Integration - Received response with status code 422

Infos:

  • Used Zammad version: 5.0.x
  • Used Zammad installation type: (source, package, docker-compose, …) package
  • Operating system: Ubuntu 18.04
  • Browser + version: Brave, Chrome, Edge (all latest versions)

Expected behavior:

Ticket gets created by Zabbix webhook
*

Actual behavior:

Created a user in Zammad in valid mail address
Enabled API tokens
Created token access for new Zammad user with permission ticket.agent
Imported media_zammad.xml into Zabbix (5.0 LTS)
Added my mail address, token and the Zammad URL to media configuration
When testing media, I receive the following error:
00:00:00.000 [Debug] [ Zammad Webhook ] Sending request: https://it-helpdesk.asmobil.ch/api/v1/tickets {“title”:"{ALERT.SUBJECT}",“group”:“Users”,“article”:{“subject”:"{ALERT.SUBJECT}",“body”:"{ALERT.MESSAGE}",“type”:“note”,“internal”:false},“customer”:“nadine.wickord@asmobil.ch”}

00:00:00.133 [Debug] [ Zammad Webhook ] Received response with status code 422: {“error”:“No lookup value found for ‘group’: “Users””,“error_human”:“No lookup value found for ‘group’: “Users””}

00:00:00.134 [Warning] [ Zammad Webhook ] ERROR: Request failed with status code 422 Check debug log for more information.
*

Steps to reproduce the behavior:

Manual test of Zabbix media type
*

This is the error you have to solve.
The media script of Zabbix by default posts into Zammads default group “users”.
If you renamed or removed it, this step will fail.

Adjust your media script to a fitting group.

Thanks, that did the trick. We imported our OTRS environment, so I did not know what the default groups were called

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.