Installation of CheckMK 1.6 on CentOS 8 fails with dependencies

Trying to install the check-mk-raw-1.6.0p8-el8-38.x86_64.rpm file which is the installer for CentOS. We have a CentOS 8 here which is officially supported according to the download page. Going by the installation instructions there is no special handling necessary for CentOS 8 and CheckMK 1.6.

yum install check-mk-raw-1.6.0p8-el8-38.x86_64.rpm

gives:

Letzte Prüfung auf abgelaufene Metadaten: vor 0:44:13 am Fr 31 Jan 2020 10:01:00 CET.
Fehler:
Problem: conflicting requests

  • nothing provides libgsf needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides uuid needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides rpm-build needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides httpd needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php-cli needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides poppler-utils needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides xinetd needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides dialog needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides libpq needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php-xml needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides freeradius-utils needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides libdbi needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides perl-IO-Zlib needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides perl-Locale-Maketext-Simple needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides perl-Net-Ping needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php-gd needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php-mbstring needed by check-mk-raw-1.6.0p8-el8-38.x86_64
  • nothing provides php-pdo needed by check-mk-raw-1.6.0p8-el8-38.x86_64
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

Adding additional repositories remedies some of these dependencies, however, this unfilled dependency remains:

  • nothing provides libdbi needed by check-mk-raw-1.6.0p8-el8-38.x86_64

libdbi is not available for CentOS 8.

Usually i do this previous dependencies installations:

yum install epel-release

yum install time traceroute dialog fping graphviz graphviz-gd httpd libevent libdbi rpcbind net-snmp net-snmp-utils perl-Net-SNMP perl-Locale-Maketext-Simple perl-IO-Zlib php php-cli php-xml php-mbstring php-pdo php-gd rsync uuid xinetd freeradius-utils libpcap bind-utils poppler-utils libgsf rpm-build

Usually i don’t need any other deps.

Cheers,

Hi,
libdbi is in the EPEL-Repository. If you plan to use NagVis, then install the php-json-package also.

Karl

Thanks for the suggestion. After installing epel-release, it doesn’t fare much better:

[root@goe-vm-monigo01 ~]# yum install epel-release
Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:50 am Fr 31 Jan 2020 11:06:27 CET.
Das Paket epel-release-8-8.el8.noarch ist bereits installiert.
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.
[root@goe-vm-monigo01 ~]# yum install time traceroute dialog fping graphviz graphviz-gd httpd libevent libdbi rpcbind net-snmp net-snmp-utils perl-Net-SNMP perl-Locale-Maketext-Simple perl-IO-Zlib php php-cli php-xml php-mbstring php-pdo php-gd rsync uuid xinetd freeradius-utils libpcap bind-utils poppler-utils libgsf rpm-build
Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:57 am Fr 31 Jan 2020 11:06:27 CET.
Das Paket time-1.9-3.el8.x86_64 ist bereits installiert.
Kein Treffer für Argument: dialog
Das Paket graphviz-2.40.1-39.el8.x86_64 ist bereits installiert.
Das Paket graphviz-gd-2.40.1-39.el8.x86_64 ist bereits installiert.
Kein Treffer für Argument: httpd
Das Paket libevent-2.1.8-5.el8.x86_64 ist bereits installiert.
Kein Treffer für Argument: net-snmp
Kein Treffer für Argument: net-snmp-utils
Kein Treffer für Argument: perl-Locale-Maketext-Simple
Kein Treffer für Argument: perl-IO-Zlib
Kein Treffer für Argument: php
Kein Treffer für Argument: php-cli
Kein Treffer für Argument: php-xml
Kein Treffer für Argument: php-mbstring
Kein Treffer für Argument: php-pdo
Kein Treffer für Argument: php-gd
Das Paket rsync-3.1.3-6.el8.x86_64 ist bereits installiert.
Kein Treffer für Argument: uuid
Kein Treffer für Argument: xinetd
Kein Treffer für Argument: freeradius-utils
Das Paket libpcap-14:1.9.0-3.el8.x86_64 ist bereits installiert.
Das Paket bind-utils-32:9.11.4-26.P2.el8.x86_64 ist bereits installiert.
Kein Treffer für Argument: poppler-utils
Kein Treffer für Argument: libgsf
Kein Treffer für Argument: rpm-build
Fehler: Es konnte kein Treffer gefunden werden.: dialog httpd net-snmp net-snmp-utils perl-Locale-Maketext-Simple perl-IO-Zlib php php-cli php-xml php-mbstring php-pdo php-gd uuid xinetd freeradius-utils poppler-utils libgsf rpm-build

I’m new to the CentOS/Redhat sphere, so I might miss something obvious.

Hi,
what’s the output of

yum repolist

?
Karl

[root@goe-vm-monigo01 ~]# yum repolist
Letzte Prüfung auf abgelaufene Metadaten: vor 0:08:29 am Fr 31 Jan 2020 11:06:27 CET.
Paketquellen-ID Paketquellen-Name: Status
AppStream-source CentOS-8 - AppStream Sources 1.854
BaseOS CentOS-8 - Base 1.786
BaseOS-source CentOS-8 - BaseOS Sources 612
PowerTools CentOS-8 - PowerTools 1.499
centosplus CentOS-8 - Plus 18
centosplus-source CentOS-8 - Plus Sources 2
cr CentOS-8 - cr 0
*epel Extra Packages for Enterprise Linux 8 - x86_64 4.596
*epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64 0
extras CentOS-8 - Extras 3
extras-source CentOS-8 - Extras Sources 3
fasttrack CentOS-8 - fasttrack 0

Hi,
let’s try

yum clean metadata
yum search httpd

Karl

[root@goe-vm-monigo01 ~]# yum clean metadata
Zwischenspeicher veraltet
84 Dateien entfernt
[root@goe-vm-monigo01 ~]# yum search httpd
CentOS-8 - Base 262 kB/s | 4.0 MB 00:15
CentOS-8 - cr 16 B/s | 257 B 00:16
CentOS-8 - Extras 141 B/s | 2.1 kB 00:15
CentOS-8 - PowerTools 132 kB/s | 2.0 MB 00:15
CentOS-8 - BaseOS Sources 28 kB/s | 290 kB 00:10
CentOS-8 - AppStream Sources 70 kB/s | 712 kB 00:10
CentOS-8 - Extras Sources 163 B/s | 1.6 kB 00:10
CentOS-8 - Plus Sources 186 B/s | 1.9 kB 00:10
CentOS-8 - Plus 37 kB/s | 570 kB 00:15
CentOS-8 - fasttrack 17 B/s | 257 B 00:15
Extra Packages for Enterprise Linux Modular 8 - x86_64 1.3 kB/s | 21 kB 00:15
Extra Packages for Enterprise Linux 8 - x86_64 352 kB/s | 5.4 MB 00:15
======================================================================================================== Name exakte Treffer: httpd =========================================================================================================
httpd.src : Apache HTTP Server
======================================================================================================= Name & Summary Treffer: httpd =======================================================================================================
libmicrohttpd-doc.noarch : Documentation for libmicrohttpd
libmicrohttpd-devel.i686 : Development files for libmicrohttpd
libmicrohttpd-devel.x86_64 : Development files for libmicrohttpd
lighttpd-filesystem.noarch : The basic directory layout for lighttpd
lighttpd-mod_authn_pam.x86_64 : Authentication module for lighttpd that uses PAM
lighttpd-mod_authn_gssapi.x86_64 : Authentication module for lighttpd that uses GSSAPI
keycloak-httpd-client-install.src : Tools to configure Apache HTTPD as Keycloak client
lighttpd-mod_mysql_vhost.x86_64 : Virtual host module for lighttpd that uses a MySQL database
lighttpd-fastcgi.x86_64 : FastCGI module and spawning helper for lighttpd and PHP configuration
lighttpd-mod_authn_mysql.x86_64 : Authentication module for lighttpd that uses a MySQL database
============================================================================================================ Name Treffer: httpd ============================================================================================================
lighttpd.x86_64 : Lightning fast webserver with light system requirements
libmicrohttpd.i686 : Lightweight library for embedding a webserver in applications
libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications
libmicrohttpd.src : Lightweight library for embedding a webserver in applications
sysusage-httpd.noarch : Apache configuration for sysusage
========================================================================================================== Summary Treffer: httpd ===========================================================================================================
mod_auth_mellon.src : A SAML 2.0 authentication module for the Apache Httpd Server
[root@goe-vm-monigo01 ~]#

Hi,

yum repolist all | grep "AppStream"

I think the AppStream-Repository is deactivated. That’s the problem.
Do you have the file /etc/yum.repos.d/CentOS-AppStream.repo?
You can change the setting from enabled=0 to enabled=1

After that test with the command:

yum search httpd

Karl

You were right, that repo was deactivated. After enabling it, the

dnf localinstall check-mk-raw-1.6.0p8-el8-38.x86_64.rpm

works. What I am taking away from this is that CentOS 8 is supported, but the documentation is out of date, as it says that this extra work that went into that now is only listed for previous CentOS versions.

Thank you!

Hi,
install php-json if you want to use NagVis. This package is missing in the dependency list of CMK.

Karl

1 Like