How to install Checkmk on Debian 10?

Windows Articles

How to install Screaming Frog SEO Spider on Ubuntu 20.04 / 18.04?

If you are working with blogs and content creation then you should know about SEO. Or in the best case, you have...

How to Configure a Firewall in Ubuntu 20.04 / Debian 10?

There is nothing safe from hackers on the Internet, however, we can implement security measures to be more protected against an attack. With this...

Gnome 3.38 available

Gnome OS is a Linux-based operating system, which has a huge domain in the Linux forums. On September 16, 2020, developers announced...

NVIDIA acquires ARM for $40 billion

Various rumors of an agreement between NVIDIA and SoftBank to acquire Arm. Where NVIDIA announces that they reached an agreement to buy...

How to install CodoForum on Ubuntu 20.04 / Debian 10?

Hi, folks. In this post, I will show you how to install CodoForum in Ubuntu 20.04 /Debian 10. This program is quite useful to...
angeloma
angeloma
Senior Writer and partner

Knowing how an IT infrastructure works it is vital for eradicating certain errors and inappropriate behavior. But to know how it works, complex applications are required to facilitate this task. Today we will tell you about one of them. Today you will learn how to install Checkmk on Debian 10.

Checkmk is a very complete application created with Python and C++ that allows monitoring a whole IT infrastructure. This includes web servers, database managers, containers and more network services. It works with one server and on each computer, you have to install an agent.

With Checkmk you can have the very own characteristics of any monitoring system but also very particular ones. For example, you can monitor anything thanks to more than 1800 plugins which are compatible with Checkmk.

On the other hand, you will not lose any data thanks to the graphics and metrics you can analyze the behavior of the network. Alternatively use exporters for Graphite / InfluxDBl which even further increases the potential of the application.

There are really many important features and it is possible to read them from this link.

So, let’s get started.

Install Checkmk on Debian 10

The Checkmk development team provides us with a DEB package for Debian 10 which makes the installation much easier.

So, navigate to the tmp folder and from there download using the wget command.

:~$ cd /tmp/
:~$ wget -c https://checkmk.com/support/1.6.0p8/check-mk-raw-1.6.0p8_0.bionic_amd64.deb

then check the contents of the folder with the ls command.

:~$ ls
1.- tmp folder
1.- tmp folder

Now we can start the installation.

As the Checkmk package needs some dependencies, it’s better not to install it using dpkg but APT or Gdebi. As you may not have Gdebi installed, then we will use dpkg.

:~$ sudo apt install ./check-mk-raw-1.6.0p11_0.buster_amd64.deb
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 Note, selecting 'check-mk-raw-1.6.0p11' instead of './check-mk-raw-1.6.0p11_0.buster_amd64.deb'
 The following additional packages will be installed:
   apache2 apache2-bin apache2-data apache2-utils binutils binutils-common binutils-x86-64-linux-gnu curl debugedit dialog dirmngr dnsutils fontconfig fonts-liberation
   gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm graphviz lcab libapache2-mod-php7.3 libapr1 libaprutil1
   libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive13 libassuan0 libbinutils libbrotli1 libcdt5 libcgraph6 libcurl4 libdatrie1 libdbi1 libevent-2.1-6 libfreeradius3
   libfribidi0 libgpgme11 libgraphite2-3 libgsf-1-114 libgsf-1-common libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz0b libirs161 libjansson4 libksba8
   liblab-gamut1 libldb1 liblua5.2-0 libnpth0 libpango-1.0-0 libpango1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpangoxft-1.0-0 libpathplan4
   libpcap0.8 libpq5 libpython2.7 librpm8 librpmbuild8 librpmio8 librpmsign8 libsmbclient libsodium23 libtalloc2 libtdb1 libtevent0 libthai-data libthai0
   libtirpc-common libtirpc3 libwbclient0 libxdot4 libxslt1.1 php php-cgi php-common php-gd php-pear php-sqlite3 php-xml php7.3 php7.3-cgi php7.3-cli php7.3-common
   php7.3-gd php7.3-json php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml pinentry-curses psmisc python-crypto python-gpg python-ldb python-samba python-talloc
   python-tdb rpcbind rpm rpm-common rpm2cpio rsync samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient time xinetd
 Suggested packages:
   apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser binutils-doc rpm-i18n pinentry-gnome3 tor rblcheck parcimonie xloadimage scdaemon
   graphviz-doc cabextract lrzip pinentry-doc python-crypto-doc alien elfutils rpmlint rpm2html heimdal-clients cifs-utils
 The following NEW packages will be installed:
   apache2 apache2-bin apache2-data apache2-utils binutils binutils-common binutils-x86-64-linux-gnu check-mk-raw-1.6.0p11 curl debugedit dialog dirmngr dnsutils
   fontconfig fonts-liberation gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm graphviz lcab libapache2-mod-php7.3 libapr1
   libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive13 libassuan0 libbinutils libbrotli1 libcdt5 libcgraph6 libcurl4 libdatrie1 libdbi1 libevent-2.1-6
   libfreeradius3 libfribidi0 libgpgme11 libgraphite2-3 libgsf-1-114 libgsf-1-common libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz0b libirs161 libjansson4
   libksba8 liblab-gamut1 libldb1 liblua5.2-0 libnpth0 libpango-1.0-0 libpango1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpangoxft-1.0-0 libpathplan4
   libpcap0.8 libpq5 libpython2.7 librpm8 librpmbuild8 librpmio8 librpmsign8 libsmbclient libsodium23 libtalloc2 libtdb1 libtevent0 libthai-data libthai0
   libtirpc-common libtirpc3 libwbclient0 libxdot4 libxslt1.1 php php-cgi php-common php-gd php-pear php-sqlite3 php-xml php7.3 php7.3-cgi php7.3-cli php7.3-common
   php7.3-gd php7.3-json php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml pinentry-curses psmisc python-crypto python-gpg python-ldb python-samba python-talloc
   python-tdb rpcbind rpm rpm-common rpm2cpio rsync samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient time xinetd
 0 upgraded, 122 newly installed, 0 to remove and 0 not upgraded.
 Need to get 52.3 MB of archives.
 After this operation, 618 MB of additional disk space will be used.
 Do you want to continue? [Y/n]
2.- Install Checkmk on Debian 10
2.- Install Checkmk on Debian 10

During the installation process, you will be asked a configuration question about the samba service. In this case, I answered NO.

3.- Configuring Checkmk on Debian 10
3.- Configuring Checkmk on Debian 10

In the end, you will see a final message as in the image below.

4.- Checkmk installed
4.- Checkmk installed

This indicates that there was no error and that the whole process went well.

Now, Checkmk works by creating a new instance on the server. This instance is created by executing a command. To know which are the available commands:

:~$ sudo omd
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 su         SITE                    Run a shell as a site-user
  omd umount     [SITE]                  Umount ramdisk volumes of site(s)
  omd backup     SITE [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 Check_MK versions that are not used by any site.
 General Options:
  -V                     set specific version, useful in combination with update/create
  omd COMMAND -h, --help          show available options of COMMAND
5.- commands to mange checkmk
5.- commands to mange checkmk

And to create the new instantiation, execute the following command:

:~$ sudo omd create monsvrs
Adding /opt/omd/sites/monsvrs/tmp to /etc/fstab.
 Creating temporary filesystem /omd/sites/monsvrs/tmp…OK
 Restarting Apache…OK
 Created new site monsvrs with version 1.6.0p11.cre.
 The site can be started with omd start monsvrs.
   The default web UI is available at http://osradar/monsvrs/
 The admin user for the web applications is cmkadmin with password: gTLqW8cC
   (It can be changed with 'htpasswd -m ~/etc/htpasswd cmkadmin' as site user.
 )
   Please do a su - monsvrs for administration of this site.
6.- Creating a new checkmk instance
6.- Creating a new checkmk instance

In the message, you will see the address you have to access from the web browser as well as the username and password of the administrator user.

Then, you have to start the newly created instance:

:~$ sudo omd start monsvrs
Starting mkeventd…OK
Starting rrdcached…OK
Starting npcd…OK
Starting nagios…OK
Starting apache…OK
Initializing Crontab…OK
7.- Staring a new instance
7.- Staring a new instance

Finally, open your favorite web browser and go to the address the installer gave you. It also works with the IP address of the server. You will see the following:

8.- Checkmk login page
8.- Checkmk login page

Enter the username and password you were given and you will see the following:

9.- Checkmk on Debian 10
9.- Checkmk on Debian 10

That’s it, the instance is now complete. Soon we will install the agent on another computer and add it.

Conclusion

Checkmk is a software wonder and only with it, you can monitor an entire IT infrastructure. That’s how fast and easy it is. Thanks to the many plug-ins you can even extend the potential of the application further.

Please share this post and join our Telegram channel.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Screaming Frog SEO Spider on Ubuntu 20.04 / 18.04?

If you are working with blogs and content creation then you should know about SEO. Or in the best case, you have...

How to Configure a Firewall in Ubuntu 20.04 / Debian 10?

There is nothing safe from hackers on the Internet, however, we can implement security measures to be more protected against an attack. With this...

Gnome 3.38 available

Gnome OS is a Linux-based operating system, which has a huge domain in the Linux forums. On September 16, 2020, developers announced...

NVIDIA acquires ARM for $40 billion

Various rumors of an agreement between NVIDIA and SoftBank to acquire Arm. Where NVIDIA announces that they reached an agreement to buy...

How to install CodoForum on Ubuntu 20.04 / Debian 10?

Hi, folks. In this post, I will show you how to install CodoForum in Ubuntu 20.04 /Debian 10. This program is quite useful to...
x