Install, update and remove checkmk Agent on Windows or Linux with automated scripts. Furthermore these scripts are adding or removing the client-object in the checkmk-Server (via API calls).
-
No pending changes open in checkmk instance before running a script.
-
Open web interface from checkmk server and log-in with admin account.
-
Create a new User (if not already existent) with the following name:
automation
-
Asign the Role
Administrator
to theautomation
-User.
-
For all scripts please edit the following variuables:
-
SERVER_NAME: IP-Address or DNS name of your checkmk-Server.
-
SITE_NAME: Site where you want to add the host/client-system to.
More info what a site is in checkmk: https://docs.checkmk.com/latest/en/intro_setup.html#create_site
-
PASSWORD: Password of the newly created or existent user
automation
-
-
After creating or downloading the script please make it executable:
chmod +x <SCRIPTNAME.sh>
-
Execute the script with root-rights:
sudo ./<SCRIPTNAME.sh>
All scripts are running ca. 3 minutes (do to some API calls.) !!!
-
For all scripts please edit the following variuables:
-
SERVER_NAME: IP-Address or DNS name of your checkmk-Server.
-
SITE_NAME: Site where you want to add the host/client-system to.
More info what a site is in checkmk: https://docs.checkmk.com/latest/en/intro_setup.html#create_site
-
PASSWORD: Password of the newly created or existent user
automation
-
-
Execute the script with administrator-rights:
powershell ./<SCRIPTNAME.ps1>
All scripts are running ca. 3 minutes (do to some API calls.) !!!