Skip to content

Custom Checkmk plugins and scripts for advanced IT monitoring by ADMIN INTELLIGENCE GmbH. Adds checks for backups, firewalls, and Windows/Linux hosts. Easy integration for Checkmk environments.

License

Notifications You must be signed in to change notification settings

ADMIN-INTELLIGENCE-GmbH/CheckMK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CheckMK Agent Deployment and Management Script for Ubuntu

This repository provides a universal Bash script to deploy and manage the Checkmk monitoring agent on Ubuntu machines. The script supports flexible installation modes for both the RAW edition and Enterprise/Cloud/MSP editions of Checkmk.

Overview

The script automates many complex tasks including:

  • Installing the Checkmk agent with options for standard RAW or Cloud/Enterprise registration.
  • Agent registration and automatic update setup (for Enterprise/Cloud/MSP editions).
  • Plugin management and configuration to extend agent functionality.
  • Local check management with custom self-developed local checks included.
  • Cleanup and removal of Checkmk agent installations.
  • Additional helper tools and scripts.

Several custom local checks are provided in the local_checks directory, including checks for BorgBackup, SQL dumps, reboot requirement, Proxmox VE monitoring, and PVE backup configuration.

Features

  • Flexible installation modes with interactive menu and command line options.
  • Automated agent registration and updater configuration for cloud environments.
  • Support for managing built-in plugins and external custom plugins.
  • Local check installation, configuration, and removal management.
  • Proxmox VE host and VM blacklist management for fine-tuned monitoring.
  • Detailed logging with colored message dialogs using whiptail.
  • Integration with Docker and Python for advanced scenarios.

Requirements

  • Ubuntu-based system.
  • Existing Checkmk server installation (RAW or Enterprise/Cloud editions).
  • Root privileges to run the installation script.

Usage

  1. Download and run the manage_cmk_agent.sh script as root.
  2. Follow interactive menus to select installation mode, register the agent, manage plugins or local checks.
  3. For cloud installations, provide registration details and credentials as prompted.
  4. Configure additional local checks and Proxmox VE hosts if applicable.

Local Checks Included

Script/Folder Purpose/Function
blacklist Checks if the public IP is listed on any Blacklists/SBL; outputs results for Checkmk monitoring
borg_backup Checkmk local check for BorgBackup: displays backup status, size, errors, and historical data
checkmk_services_check Monitors relevant remote Checkmk Agent services via SSH; reports errors and long runtimes
dns_from_webservers Checks DNS configuration of web servers/vhosts locally using Bash; integrates as a Checkmk local check
hetzner Lists all Hetzner snapshots across projects, gives warnings and detailed status
local_checks_bakery Automated management for local Checkmk plugins (update, version check, status report)
pve_backup_config Checks Proxmox VMs/containers for complete backup configuration; reports gaps
pve_discovery Detects all VMs on Proxmox hosts not currently monitored by Checkmk
reboot Checks if /var/run/reboot-required exists (is reboot needed?) and reports to Checkmk
reboot_required Simple variant of reboot check, tailored for plugin bakery (similar to reboot, for bakery)
rsnapshot Monitors rsnapshot backup folders: age, success/failure of backups, and reports status
sql_dump Checks SQL dumps for freshness and successful completion; reports status/size for each dump type
synology_activebackupforbusiness Monitors Synology Active Backup for Business jobs; checks last backup and status via SSH

Each script is typically designed as a Bash script with clear status output for Checkmk. For installation details, output formats, and customizing options, refer to the README in each subfolder.

License

This project is licensed under the GPL-3.0 License.

Author and Support

About

Custom Checkmk plugins and scripts for advanced IT monitoring by ADMIN INTELLIGENCE GmbH. Adds checks for backups, firewalls, and Windows/Linux hosts. Easy integration for Checkmk environments.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages