check_mk has a web api that you can use to add hosts from the command line. The documentation is here:
http://mathias-kettner.com/checkmk_wato_webapi.html
I went searching for a bash script in hopes that someone may have already created one. No luck. So, I created my own. You can find it on github here:
https://github.com/gyang2300/cmk-add-host/blob/master/cmk-add-host.sh
No comments:
Post a Comment