Find out how to set up the powerful Checkmk monitor to keep tabs on all of your networked servers. </p><div data-component="lazyloadImages"> <figure class="image pull-none image-large"><a href="https://www.techrepublic.com/a/hub/i/r/2018/09/11/1f55b7b9-eca5-4b60-85a7-59101a50deea/resize/770x/f2119572e7a1baf7c5e3b5612551829d/istock-518142550.jpg" target="_blank" data-component="modalEnlargeImage" data-headline="<p></p>" data-credit="Ralwel, Getty Images/iStockphoto" rel="noopener"><span class="img aspect-set " style="padding-bottom: 55%"><img src="https://www.techrepublic.com/a/hub/i/r/2018/09/11/1f55b7b9-eca5-4b60-85a7-59101a50deea/resize/770x/f2119572e7a1baf7c5e3b5612551829d/istock-518142550.jpg" class="" alt="istock-518142550.jpg" width="770"/></span></a><figcaption><p> Ralwel, Getty Images/iStockphoto </p></figcaption></figure><p>As a systems/network administrator, it's on you to keep tabs on the Linux servers in your data center (be it on-premise or in the cloud). Given the Linux platform has a significant number of tools to help you monitor those servers, you might not know where to start. Among those many titles, there is one particular software package that you should definitely try out. Said monitor is Checkmk.
Checkmk can monitor your servers, desktops, applications, networks and cloud environments, all from a well-designed web-based GUI dashboard.
I’m going to walk you through the process of installing Checkmk and then adding a monitoring agent. We’ll do both on Ubuntu Server 20.04, but know that this software supports Debian- and RHEL-based distributions.
There are two different versions of Checkmk:
- Raw – the fully open source version that doesn’t include every feature.
Enterprise – this includes the Free version (which limits you to 25 hosts after 30 days, Standard and Managed Services edition). Find out more about pricing and features on the Checkmk editions matrix.
SEE: Checklist: Server inventory (TechRepublic Premium)
What you’ll need
To install Checkmk, you’ll need a running instance of Ubuntu Server 20.04 and a user with sudo privileges. That’s it. Let’s get that server monitor up and running.
How to install Checkmk
You won’t find Checkmk in the standard repositories. Instead, head over to the download page and either download the version you want to use or log into your Ubuntu Server and issue the command:
<p>You'll want to snag the download URL by right-clicking the Download button (after selecting the version you want).
Once the download is complete, install Checkmk with:
sudo dpkg -i *.deb
<p>The installation will error out. To fix this, issue the command: </p><pre class="code">sudo apt-get install -f</pre> <p>The above command will install all of the necessary dependencies for Checkmk. </p><h2> How to create a Checkmk monitoring site </h2><p>The next step is to generate everything necessary for a Checkmk monitoring site (which is really just a fancy term for a Checkmk instance). Let's call our instance tr_test. We'll create that instance with the command: </p><pre class="code">sudo omd create tr_test</pre> <p>The output of the command will give you the address of the web-based GUI and the admin login credentials for your instance. With this taken care of, start the instance with: </p><pre class="code">sudo omd start tr_test</pre> <h2> How to access the web-based GUI </h2><p>Open a web browser and point it to http://SERVER/tr_test (where SERVER is the IP address of the hosting server). Give the site time to load and then login with the admin credentials supplied to you by the create command. Upon successful authentication, you'll find yourself on the Checkmk main dashboard (<strong>Figure A</strong>).
How to add a new host
At the moment, Checkmk isn’t monitoring anything. What we need to do is add a host. We’ll add the server hosting Checkmk as an example.
On the left sidebar, click Setup | Agents. In the resulting page (Figure B), right-click check-mk-agent_2.0.0p9-1_all.dpkg and copy the address.
Go back to the terminal window and download the agent with:
<p>Where URL is the address of the agent you copied.
Install the agent with:
sudo dpkg -i check-mk-agent_2.0.0p9-1_all.dpkg
<p>After the agent installs, go back to the Checkmk site and click Settings | Host, and then click Add Host. On the resulting page (<strong>Figure C</strong>), you'll need to enter the hostname of the host to be added and then click the checkbox for IPv4 address.
Click Save & go to service configuration. Eventually, this new page will list out all of the found services (Figure D).
If any services are listed as Undecided, click Fix all to solve that problem.
At this point, Checkmk is not monitoring the server on which it is hosted. You can now go back to the dashboard and start customizing it to view what you need for that host. You can also continue adding agents to other servers and then add them as hosts on Checkmk.
<h2>Also see</h2> </div>