Werk #5205: Host rename: Fixed broken renaming when new name uses dots

Component Core & setup
Title Host rename: Fixed broken renaming when new name uses dots
Date Sep 11, 2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.8p26 1.4.0p12 1.5.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When using the host rename feature of WATO and setting a new name that contains a dot, for example myhost.domain, the rename failed to set a correct new name. Instead of setting the intended name, the name was set to "myhost[.]domain" in different places.

The affected files are:

  • Nagios core: var/nagios/retention.dat
  • NagVis maps: etc/nagvis/maps/*.cfg
  • Monitoring history of all supported cores:
    • var/check_mk/core/history
    • var/check_mk/core/archive/*
    • var/nagios/nagios.log
    • var/nagios/archive/*

In case you did such a rename action, you can stop your site and fix the wrong names in the mentioned files on your own, e.g. by using sed.

To the list of all Werks