Skip to content

CheckMK Agent installer with automatic host registration (as in CheckMK Enterprise)

Notifications You must be signed in to change notification settings

itweserems/checkmk-agent-installer

 
 

Repository files navigation

CheckMK2 agent installer

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). This implements the same functionality as available on CheckMK2 enterprise edition.

Contact

These scripts are maintained by IT.WESER-EMS UG - an ITSM consulting company from Oldenburg, Nothern Germany. Our focus is implementation, consulting, training and development for

  • Znuny ticketing system
  • GLPI asset management
  • CheckMK2 IT-monitoring

In case of questions, please feel free to contact us on https://it-weser-ems.de/.

Licensing

These scripts originate from Github profile SuitDeer (thanks for sharing!) and were slightly changed to optimize them.
As long as it's repository is public, feel free to use them!

Prerequisites

  1. No pending changes open in CheckMK instance before running a script.

    • this is to make sure that agent installation does not deploy any other open changes from CheckMK configuration
  2. Open web interface from CheckMK server and log-in with an admin account

  3. Create a new User (if not already existent) with the following name: automation

  4. Asign the Role Administrator to the automation-User.

    automation user


Run the script

Linux

  1. For all scripts please edit the following variuables:

  2. After creating or downloading the script please make it executable:

    chmod +x <SCRIPTNAME.sh>
  3. Execute the script with root-rights:

    sudo ./<SCRIPTNAME.sh>

All scripts are running about 4 minutes (due to some API calls and further checks.) !!!


Windows

  1. For all scripts please edit the following variuables:

  2. Execute the script with administrator-rights:

    powershell ./<SCRIPTNAME.ps1>

All scripts are running about 4 minutes (due to some API calls and further checks.) !!!


About

CheckMK Agent installer with automatic host registration (as in CheckMK Enterprise)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 52.0%
  • Shell 48.0%