How to Install Check_MK Monitoring Tool on CentOS 7


  • A fresh Alibaba Cloud instance for Check_MK server with CentOS 7 installed.
  • A fresh Alibaba Cloud instance for Check_MK agent with Ubuntu 16.04 installed.
  • A static IP address is set up on the Check_MK server instance and is set up on the Check_MK agent instance.

Launch Alibaba Cloud ECS Instance

First, Login to your Alibaba Cloud ECS Console. Create a new ECS instance, choosing CentOS 7 as the operating system with at least 2GB RAM. Connect to your ECS instance and log in as the root user.

yum update -y

Getting Started

Before starting, you will need to disable SELinux and Firewalld to your system.

systemctl stop firewalld
systemctl disable firewalld
nano /etc/selinux/config
init 6

Install Check_MK

Before installing Check_MK, you will need to install some packages required by Check_MK. You can install all of them by running the following command:

yum install xinetd openssl python epel-release -y
yum install --nogpgcheck check-mk-raw-1.4.0p12-el7-59.x86_64.rpm
Usage (called as root): omd help                               Show general help
omd setversion VERSION Sets the default version of OMD which will be used by new sites
omd version [SITE] Show version of OMD
omd versions List installed OMD versions
omd sites Show list of sites
omd create SITE Create a new site (-u UID, -g GID)
omd init SITE Populate site directory with default files and enable the site
omd rm SITE Remove a site (and its data)
omd disable SITE Disable a site (stop it, unmount tmpfs, remove Apache hook)
omd enable SITE Enable a site (reenable a formerly disabled site)
omd mv SITE NEWNAME Rename a site
omd cp SITE NEWNAME Make a copy of a site
omd update SITE Update site to other version of OMD
omd start [SITE] [SERVICE] Start services of one or all sites
omd stop [SITE] [SERVICE] Stop services of site(s)
omd restart [SITE] [SERVICE] Restart services of site(s)
omd reload [SITE] [SERVICE] Reload services of site(s)
omd status [SITE] [SERVICE] Show status of services of site(s)
omd config SITE ... Show and set site configuration parameters
omd diff SITE ([RELBASE]) Shows differences compared to the original version files
omd vimdiff SITE ([RELBASE]) Opens vimdiff with the current file and the default version of that file
omd reset SITE ([RELBASE]) Reset file to default version from skeleton
omd su SITE Run a shell as a site-user
omd umount [SITE] Umount ramdisk volumes of site(s)
omd backup SITE [-|ARCHIVE_PATH] Create a backup tarball of a site, writing it to a file or stdout
omd restore [SITE] [-|ARCHIVE_PATH] Restores the backup of a site to an existing site or creates a new site
omd cleanup Uninstall all OMD versions that are not used by any site.
General Options:
-V <version> set specific version, useful in combination with update/create
omd COMMAND -h, --help show available options of COMMAND

Create Monitoring Instance

Check_MK is now installed, it’s time to create your first monitoring instance.

omd create monitoring
Adding /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.80-labs-edition.
The site can be started with omd start monitoring.
The default web UI is available at http://Node1/monitoring/
The admin user for the web applications is omdadmin with password omd.
Please do a su - monitoring for administration of this site.
omd start monitoring
Starting rrdcached...OK
Starting npcd...OK
Starting naemon...OK
Starting dedicated Apache for site monitor...OK
Initializing Crontab...OK
su - monitoringOMD[monitoring@Node1]:~$ htpasswd -m ~/etc/htpasswd cmkadmin
New password:
Re-type new password:
Adding password for user cmkadmin

Add CentOS Host on Check_MK

Next, you will need to add a Linux host for monitoring instance. Here, we will use monitoring host as Check_MK server itself.

rpm -ivh check-mk-agent-1.4.0p12-1.noarch.rpm

Working with Check_MK

Now, go to the Check_MK web interface and click on the Dashboards > Main Overview item on the left pane. You should see the one host is up with no errors in the following page:

Add Ubuntu Host on Check_MK

Before starting, you will need to install Ckeck_MK agent on the Ubuntu 16.04 instance.

apt-get install xinetd -y
systemctl start xinetd
dpkg -i check-mk-agent_1.4.0p12-1_all.deb

Original Source



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website: