Best way to rename multiple hosts

Hey Community,
i´m searching for a good way to rename a bunch of hosts.
Using Checkmk 2.0.0p12. I didn´t find a solution for this. Only the way via the GUI. But i don´t want to rename over 2000 Hosts with that function.
Maybe there´s a way with the CLI.
Thanks for help.

Hi @bo_jinglez,

why is the GUI option not good enough? You can rename multiple hosts with the GUI. This is called bulk renaming in Checkmk.

You can find this function if you navigate here:

Maybe you can provide a bit more information about how you want to rename your hosts.

Greetings Norm :slightly_smiling_face:

2 Likes

Hi @bo_jinglez,

as far as i know, there is no CLI function to rename host. I also highly would not recommend changing files manually because renaming is an huge process where beside configuration files also the historical information (RRD, logs, notifications, …) are change to the new name. If you have such an amount of hosts to rename think about if it’s not a better way to delete and recreate these hosts. This decision depends on your needs. If you like to keep historical data, renaming is your choice. If you have a bunch of rules explicit set to host names you may better rename the hosts too. In all other cases a guess recreating is much easier.

Hey. Thanks for help. I hoped there were a CLI Option for renaming. I have hosts from two domains in my monitoring. But for now there are a bunch of hosts with the same hostname but different domain.
With an CLI Option I could use nslookup command and then automate this process, with GUI Option is better than nothing. I´ll give it a try. Thanks for help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.