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

KomponenteCore & Setup
TitelHost rename: Fixed broken renaming when new name uses dots
Datum2017-09-11 11:52:18
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.4.0p12,1.5.0i1,1.2.8p26
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

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.