Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #22083: REST API: report unknown hosts when creating a comment

Component REST API
Title REST API: report unknown hosts when creating a comment
Date Jul 31, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p11 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Creating a comment for a host that is not monitored made the REST API return an internal error and write a crash report, instead of telling you what was wrong. Affected are the endpoints "Create a host comment" and "Create a service comment", when the comment is addressed to a host name rather than to a query.

The same situation was already reported properly for the query based variant of these endpoints, which answers with "The query did not match any host".

The endpoints now answer with a 404 and the message "The requested host was not found".

To the list of all Werks