Saturday, April 04, 2020

checkmk Installation For Infrastructure & Application Monitoring on Ubuntu 18.04.4 LTS

Introduction to checkmk can be referred to this link.

Step 1: Dependency Installation:

It may vary depending on your system. You can observe the error message, if any, during installing checkmk using package manager dpkg:

sudo apt -y install dialog graphviz apache2 apache2-utils libevent-1.4-2 php-cli php-cgi php-gd 

sudo apt -y install php-sqlite3 php-json php-pear pyro rpcbind xinetd freeradius-utils rpm lcab libfl2

Step 2: checkmk Installation:

Once the dependencies are successfully installed on Step 1, you can install checkmk with the below command:

sudo dpkg -i check-mk-enterprise-1.6.0p11.demo_0.bionic_amd64.deb

By default, your download location is located under your Downloads folder under your home directory ($HOME/Downloads). As of writing this post, I downloaded this package version check-mk-enterprise-1.6.0p11.

You will need to fix any error prior to continuing with the following steps:

sudo systemctl restart apache2
sudo omd create mysite
sudo omd start mysite

Please note that the default 'mysite' can be changed to any name you prefer. After 'sudo omd create mysite' you will be provided the generated password for the user cmkadmin as below snapshot as ab example:


You can modify the generated password by using the below command:

sudo passwd mysite
su - mysite
htpasswd -m ~/etc/htpasswd cmkadmin
sudo systemctl restart apache2

For the ease during my installation, I used password mysite for the user mysite, and password cmkadmin for the user cmkadmin. I don't encourage you to use such a very weak password in my case. It is strongly recommended, from the security point of view, to use strong alphanumeric mixed with special characters not-easy-to-guess password. Please follow recommendations from the security best practice.

Then go your browser, type http://localhost/mysite. After successfully login-ed,  the web GUI will look like the below:



If you want to wipe all the existing configuration, you can use below command to reset:

sudo omd stop mysite
sudo omd disable mysite
sudo omd --force init mysite

After the last command, a new password for user cmkadmin will be regenerated.. Please find the sample snapshot below:



Credit: checkmk, installation log can be also found on this link, omd command reference.



No comments: