Changing hostnames

Is it possible to change the hostnames in checkmk?

We have a few Azure ones that were created before I took over and I’d like to change these.

Hi,

sure you can rename hosts, but if you are having a lot of hosts and a long running site i would recommend to not do that.
In that case i would clone the hosts and delete the wrong ones instead, but be aware that you are losing historical and performance data.

And how can you rename then?
It’s grey out when I try to edit a host:

image

look at the menu…

This looks great but I can’t find this. Where is this menu?
image
image

I found it! Thanks for the prompt.

If I re-name an azure host would all the rules update accordingly with that name?
That’s in the same sense if re-naming any host I guess.

This is an example of what is renamed when you rename a host

Renamed 1 host at the following places:

  • Disovered services of the host
  • Cached output of monitoring agent
  • File with performance counter
  • Folder
  • Monitoring history entries (events and availability)
  • Disovered host labels of the host
  • History of hardware/software inventory
  • Piggyback information for other hosts (23 times)
  • The current monitoring state (including acknowledgements and downtimes)
  • RRD databases with performance data
  • RRD updates in journal of RRD Cache
  • UUID links for TLS-encrypting agent communication
  • Host and service configuration rule (2 times)
2 Likes

to add to this, there are very few places (not often used) where the rename does afaik not work:

  • notification rules explicitly filtering for one host
  • overlapping clusters rule where the hostname is part of the rule value and not the rule condition
  • any rules you might have that match the host with a regex - that regex is of course not changed
2 Likes

So basically what you’re saying is if I re-name a host the rules to which were applied to it will change also. i.e if it is used as an explicit host in a rule this will change also?

yes, with the exceptions that Gerd wrote