Hi All,
I have an issue with the multisite login dialog and the automation secret. I am deploying check_mk 1.2.6p15 using ansible for the deployment. Part of this process involves templating /etc/check_mk/multisite.d/wato/users.mk, /etc/check_mk/conf.d/wato/contacts.mk
and /var/lib/check_mk/web/[user]/automation.secret.
If I then try to register a client with the server using the webapi (
[http://check_mk server]/check_mk/ webapi.py?action=add_host&_username=[username]&_secret=[secret]
) this fails stating that the automation secret is wrong. If I then log into the web interface using the same credentials, I can log in fine. After logging in on the web interface the registration of the client using the webapi works without a problem.
Why does check_mk require a login to the web interface before the credentials will work over the webapi? How can I automate this process?
Thanks in advance,
Simon Wall