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

Werk #22249: check_sftp: Replace host macros in host name and service name

Component Checks & agents
Title check_sftp: Replace host macros in host name and service name
Date Oct 5, 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.0p16
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p38
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Until now, the Check SFTP service rule used macros like $HOSTNAME$ literally. If you set the Host name field to $HOSTNAME$ so you could apply one rule to many hosts, the check tried to connect to a host that is literally named $HOSTNAME$. Every service then went CRIT with "Connection failed!".

This is fixed. Host macros in the Host name field and in a custom service name are now replaced with the values of the host the check runs for.

To the list of all Werks