Icinga2 no monitoring modul

Hi,
I have a problem installing icinga2, specifically when configuring icingaWeb2.

I can’t find icinga monitoring module.
When i tried to enable it via the command line, i have this output:

$ icingacli module enable monitoring
ERROR: Icinga\Exception\ConfigurationError in /usr/share/php/Icinga/Application/Modules/Manager.php:246 with message: Cannot enable module "monitoring". Module is not installed.

Please help

1 Like

Hi,

please share some more information about the used operating system as well as the version of the installed packages. And did you install the packages from the pre-configured repositories or did you add packages.icinga.com to the sources? Or did you maybe built it by yourself? Additional info would be nice. :slight_smile:

I never saw this error with packages from packages.icinga.com and used them on different distributions and the monitoring module is (should be) a dependency of the icingaweb2 package. So I assume that you either installed it from an outdated(?) source (but even then it would be strange) or that your package manager did not satisfy all the dependencies.

Please try to install the package icingaweb2-module-monitoring manually.

2 Likes

Thanks! The following step solved it for me:

I am using the official packages on Ubuntu Bionic:
deb http://packages.icinga.com/ubuntu icinga-bionic main

I followed the official installation instructions for both Icinga and Icingaweb2, which gave me Icingaweb2 2.4.1.

This is a really outdated version. package.icinga.com should give you 2.7.2 for icingaweb2.
Did you do a apt update after adding the new source?

Did you add the new source like the docs suggest?

apt-get -y install apt-transport-https wget gnupg

wget -O - https://packages.icinga.com/icinga.key | apt-key add -

. /etc/os-release; if [ ! -z ${UBUNTU_CODENAME+x} ]; then DIST="${UBUNTU_CODENAME}"; else DIST="$(lsb_release -c| awk '{print $2}')"; fi; \
 echo "deb https://packages.icinga.com/ubuntu icinga-${DIST} main" > \
 /etc/apt/sources.list.d/${DIST}-icinga.list
 echo "deb-src https://packages.icinga.com/ubuntu icinga-${DIST} main" >> \
 /etc/apt/sources.list.d/${DIST}-icinga.list

apt-get update
2 Likes