Can i add device and device folder via cli checkmk

Hi all. Please advice if i able to achieve to adding device and device folder via cli in checkmk. without the api.
Thank you

Hi Farhan,

No, that’s not possible. You would need to add them to config files in ~/etc/check_m/conf.d/wato, but that is neither recommended nor guarantied to work in the future.

Best solution would, you just build yourself a little python script, which can read the Automation User Credentials, and does the API Connect for you.

From User perspective, you then would add Hots into folders using the cli.

1 Like

Hi thanks for the suggestion