Easy Folder structure replication

**CMK version:**2.2.0p19
OS version:
Ubuntu 22.04

Hello all,

I have a folder structure in CheckMK that consists of multiple into something like this :

  • Main
    • Linux
      • Site 1
      • Site 2
      • Site 3
      • Site 4
      • Site 5
      • Site 6
      • etc going with more than 30 objects
    • Windows

Is there any easy way to replicate this structure under the Windows folder?
I’ve tried copying over the files on OS level from wato, but when loading the page I’m getting unable to access.

I don’t have a direct answer for you, but probably best to look into Rest API in docs.
Chapter 5.1 has some examples for hosts and folders:

2 Likes

Additionally, if you are using ansible, the checkmk ansible module can create and modify folders:

API looks pretty easy to use and understand with swagger interface, I can replicate this and automate this task from there on. Thanks for the tip!

1 Like