Zammad + CheckMK - Set the customer for specific Hosts/Services

Infos:

  • Used Zammad version: 5.2.x
  • Used Zammad installation type: docker-compose
  • Operating system: Debian 11
  • Browser + version: all…

Expected behavior:

The Notification Script (or API) should be able open the ticket for a specific customer.

Actual behavior:

Automatic opening & closing ticket is working. But it does not set the customer.

Steps to reproduce the behavior:

cat zammad-service
#!/bin/bash

curl -X POST -F "event_id=$NOTIFY_SERVICEPROBLEMID" -F "host=$NOTIFY_HOSTNAME" -F "service=$NOTIFY_SERVICEDESC" -F "state=$NOTIFY_SERVICESTATE" -F "text=$NOTIFY_SERVICEOUTPUT" -F "customer=Zammad Foundation" -F "group=CheckMK" https://ticket.example.com/api/v1/integration/check_mk/1dc7c248d90dff...2ebc9b9ded041

The Group is set correctly - but I have a couple of services/hosts where I would like to open assign it directly to the customer.

As mentioned in the documentation ( API Reference — Zammad documentation ) you cannot override the tickets customer.

Are there any other ways to set the customer?

Via API or trigger, yes.

thank you - but on which condition?

I can’t answer that question because it depends on your environment and what you do.
The documentation and I can give hints and directions, but we can’t do the planning and configuration for you.

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