๐Ÿ’šCheckMk

Introduction to CheckMk: A Comprehensive Guide

What is CheckMk?

CheckMk is a powerful and comprehensive IT monitoring software that helps IT professionals and system administrators to monitor their entire IT infrastructure in real-time. CheckMk provides an extensive range of monitoring capabilities including host and service checks, performance monitoring, event management, and more.

CheckMk is an open-source tool that was first introduced in 2008. Since then, it has become one of the most popular monitoring solutions worldwide, trusted by companies of all sizes, from small startups to large enterprises. It is widely used in various industries, including finance, healthcare, government, education, and many more.

How CheckMk Works

CheckMk works by deploying agents on the hosts and services that need to be monitored. These agents collect data on the health and performance of the hosts and services and send it back to the CheckMk server. The CheckMk server then processes this data and generates alerts and notifications based on user-defined rules and policies.

CheckMk also includes support for SNMP monitoring, allowing users to monitor network devices such as routers, switches, and firewalls.

Why CheckMk is Useful and Cool

CheckMk is a powerful and comprehensive monitoring solution that offers a wide range of features and capabilities. It provides real-time visibility into the health and performance of IT infrastructure, enabling users to identify and address issues before they become critical.

CheckMk is also highly scalable and flexible, making it suitable for organizations of all sizes. It is easy to set up and configure, and provides a user-friendly interface that makes it easy to manage and monitor your entire IT infrastructure from a single location.

In addition to its monitoring capabilities, CheckMk also provides advanced reporting and analytics features that enable users to generate customized reports and dashboards that provide insights into the performance of their IT infrastructure.

Overall, CheckMk is a valuable and cool tool for IT professionals and system administrators who want to ensure the health and performance of their IT infrastructure.

Installation

Pull in the package using wget.

wget https://download.checkmk.com/checkmk/2.1.0p22/check-mk-raw-2.1.0p22_0.bullseye_amd64.deb # for Debian & Ubuntu
wget https://download.checkmk.com/checkmk/2.1.0p22/check-mk-raw-2.1.0p22-el9-38.x86_64.rpm # for Red Hat & CentOS

Now install the package including all of its dependencies.

sudo apt install ./check-mk-raw-2.1.0p22_0.bullseye_amd64.deb # for Debian & Ubuntu
sudo rpm --install ./check-mk-raw-2.1.0p22-el9-38.x86_64.rpm # for Red Hat & CentOS

Afterwards we can test if the installation was successful by running the omd version command:

omd version

You should see an output similar to this one: ๐Ÿ‘‡

OMD - Open Monitoring Distribution Version 2.1.0p22.cre

Use the omd command to create a new Checkmk site. You can choose your own name, in this example we named the site 'monitoring'

sudo omd create monitoring

After the site has been created you will see an output similar to the one below.

Adding /opt/omd/sites/monitoring/tmp to /etc/fstab.
Creating temporary filesystem /omd/sites/monitoring/tmp...OK
Restarting Apache...OK
Created new site monitoring with version 2.1.0p22.cre.

    The site can be started with omd start monitoring.
    The default web UI is available at http://your_server/monitoring/

    The admin user for the web applications is cmkadmin with password: 'generated-password'
    (It can be changed with 'htpasswd -m ~/etc/htpasswd cmkadmin' as site user.)
    Please do a su - monitoring for administration of this site. 

Here you can see the URL on which your site is accessible, default username, and an automatically generated password for accessing the site. The site is now created, but it still needs to be started. To start the site, type:

sudo omd start monitoring

When everything has been started successfully you will see an output similar to the one below.

Starting mkeventd...OK
Starting liveproxyd...OK
Starting mknotifyd...OK
Starting rrdcached...OK
Starting cmc...OK
Starting apache...OK
Starting dcd...OK
Starting redis...OK
Initializing Crontab...OK

Your Checkmk site is now up and running. You can visit the user interface in the browser by using the aforementioned URL.

With the site running, you can now proceed. Each site has its own URL that you can open in your browser. This URL consists of the name or IP address of the Checkmk server, a slash, and the name of the site, e.g. http://mycmkserver/mysite. You will find this login dialog at this address:

Now log in with the user name cmkadmin and the password you chose or changed at the beginning. This will take you to the start page in Checkmk.

In the Checkmk graphical user interface (GUI) you will see some elements that we do not need at this stage. Many of these are empty, or show zeros, which is because we have not yet included any objects in the monitoring:

Nevertheless, you should familiarize yourself with the basic elements of the interface. Most important is the division into the navigation bar on the left, the main page in the middle, and the sidebar on the right.

Key Features of CheckMk

CheckMk offers a wide range of features that make it a valuable tool for IT professionals. Some of its key features include:

1. Easy Configuration and Setup

CheckMk comes with a user-friendly web interface that makes it easy for users to configure and set up the monitoring tool. The interface provides a quick and simple way to add new hosts and services, create monitoring policies, and customize notifications and alerts.

2. Scalability and Flexibility

CheckMk is designed to be highly scalable and flexible, allowing users to monitor hundreds or even thousands of hosts and services in real-time. It supports a wide range of operating systems, including Linux, Windows, macOS, and more, and can monitor virtually any application or service.

3. Performance Monitoring

CheckMk provides comprehensive performance monitoring capabilities, allowing users to monitor critical metrics such as CPU usage, disk space, network bandwidth, and more. It also includes built-in tools for troubleshooting and diagnosing performance issues.

4. Event Management

CheckMk includes powerful event management features, allowing users to automate the handling of events and alerts. It supports a wide range of notification methods, including email, SMS, and instant messaging, and can be configured to escalate alerts based on severity and priority.

5. Reporting and Analytics

CheckMk provides advanced reporting and analytics features, allowing users to generate customized reports and dashboards that provide insights into the health and performance of their IT infrastructure. It includes pre-built templates for common reports, and also supports custom report creation.

Last updated