Scripts that can install, update and remove checkmk agent on windows and linux systems
https://hostlab.tech/blog/install-update-and-remove-checkmk-agent
- PowerShell 51.7%
- Shell 48.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| pictures | ||
| install-checkmk.ps1 | ||
| install-checkmk.sh | ||
| LICENSE | ||
| README.md | ||
| uninstall-checkmk.ps1 | ||
| uninstall-checkmk.sh | ||
| update-checkmk.ps1 | ||
| update-checkmk.sh | ||
checkmk-agent-scripts
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).
Prerequisites
- 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 the
automation-User.
Linux
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.) !!!
Linux-Scripts
- install-checkmk.sh
- update-checkmk.sh You can automate the update process of the checkmk agent if you run this script periodically (cron job)
- remove-checkmk.sh
Windows
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 Execute it with administrator-rights:
powershell ./<SCRIPTNAME.ps1>
All scripts are running ca. 3 minutes (do to some API calls.) !!!
Windows-Scripts
- install-checkmk.sh
- update-checkmk.sh You can automate the update process of the checkmk agent if you run this script periodically (Windows Task Scheduler)
- remove-checkmk.sh
LICENSE
All contents of this project are protected by the Apache License 2.0 LICENSE
