Checkmk integration: hostname AND servicename in ticket-title

Infos:

  • Used Zammad version: 6.4.1-1741933941.0923b150.bookworm
  • Used Zammad installation type: package
  • Operating system: Debian 12
  • Browser + version: any

Expected behavior:

  • checkmk-integration: Ticket title should include the hostname and service name (on a service-problem)

Actual behavior:

  • checkmk-integration: Ticket title contain only the hostname

detailed explanation:

*We are switching our monitoring from icinga to checkmk.
The zammad integration (System / Integrations/ checkmk) works smooth.

Unfortunately, in the case of a service problem, only the hostname is displayed in the ticket title
We would like to display the service name and hostname and not just the host name in the ticket title, as was possible with the emails through Icinga.

an Example:
Ticket title (generated by an e-mail from icinga)
[PROBLEM] Updates on webserver is CRITICAL!

Ticket title (generated by checkmk integration)
webserver is CRITICAL

and in the ticket-article is the info about the problematic service
like:
EventID: 29887
Host: webserver.xxxxxxxx
Service: APT Updates
State: CRITICAL
Text: 1 normal updates(!), 6 security updates (php8.2-readline…)

My understanding is that Zammad generates this ticket using the CheckMK integration.
The sample script from the Zammad CheckMK integration page doesn’t have an explicit field for the ticket title. Therefore, I assume that Zammad’s coding itself creates the ticket title.

Is it possible to configure the ticket title to be linked to the hostname and service name? like
on is
APT Updates on webserver is CRITICAL

how can this be done ?
or is it a feature request ? :wink:

i’m not a programmer, but i think this would be the right place

Line 39:
replace
title = “#{params[:host]} is #{params[:state]}”
with
title = “#{params[:host]} #{params[:service] is #{params[:state]}”

Is there a programmer who can tell me if I should test this or is this complete bullshit?

and yes, I know that my coding will be lost during an update

With half an eye glimpse looks good to me :trade_mark:.

Give it a try, restart Zammad and send a test alert and recover it. If shit hits the fan, you can revert within 5 minutes.

Edit:
Look who reported a bug about this… some while… ago

However, the linked issue mentions that CheckMK sends emails and Zammd converts these emails into tickets.
In my case, I’m talking about the Zammad integration checkMK.
CheckMk is talking with zammad via an curl request to an zammad endpoint (URL).
These are probably somewhat different (even though similar) things.

I wouldn’t wonder if the culprit is the same / a similar one.
But sure, you can create another bug report and mention the old one as possible duplicate. Don’t know.