Checkmk notifications

Infos:

  • Used Zammad version: latest
  • Used Zammad installation type: deb package
  • Operating system: Debian 12.1
  • Browser + version: Firefox 116.0.2

Hello ,

I just installed Zammad following the offical doc and everything for now works fine.

The only problem I meet is with the zammad-service notifications.

I use the following command (as said in the tutorial) :

curl -X POST -F “event_id=$NOTIFY_SERVICEPROBLEMID” -F “host=$NOTIFY_HOSTNAME” -F “service=$NOTIFY_SERVICEDESC” -F “state=$NOTIFY_SERVICESTATE” -F “text=$NOTIFY_SERVICEOUTPUT” https://tickets.mydomain.com/api/v1/integration/check_mk/my-id-server

But the result when ticket IS opened IS not satisfying :

EventID: $SERVICEPROBLEMID$
Host: switch2-ste-marie-974
Service: $SERVICEDESC$
State: $SERVICESTATE$
Text: $SERVICEOUTPUT$
RemoteIP: 192.168.1.17
UserAgent: curl/7.74.0

Anybody knows how to replace $info$ by the real content ?

Vincent

Yes: Use Checkmk actually it does populate these variables.
If you’re using something else, then you’ll have to adapt your variables.

Also note that if you’re using Checkmk that there’s an actual difference in between service and host notifications, the variables do differ. The correct setup is explained in the documentation:
https://admin-docs.zammad.org/en/latest/system/integrations/checkmk/setup-guide.html