Package: icinga2-common
Version: 2.13.6-2
Severity: normal

Dear Maintainer,

I have found a bug in icinga2-common and a fix.

   * What led up to the situation?
     Try to use check_systemd with icinga2
   * What exactly did you do (or not do) that was effective (or
     Add a service check in icinga2 like this:

       apply Service "systemd" {
         check_command="systemd"
         import "generic-service"
         assign where "systemd" in host.vars.groups
       }

   * What was the outcome of this action?
     The check command /usr/lib/nagios/plugins/check_systemd.py was not found.
   * What outcome did you expect instead?
     The check is perfomed.

The file /usr/share/icinga2/include/plugins-contrib.d/systemd.conf is part of
icinga2-common. The check command in line 4 ends with the file extension .py:

  command = [ PluginContribDir + "/check_systemd.py" ]

The following line works for me:

  command = [ PluginContribDir + "/check_systemd" ]

The check command check_systemd is part of the package 
  monitoring-plugins-systemd
and is installed to the path
  /usr/lib/nagios/plugins/check_systemd

Best regards,
Lars


-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-21-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_WARN
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages icinga2-common depends on:
ii  adduser                    3.134
ii  lsb-base                   11.6
ii  lsb-release                12.0-1
ii  sysvinit-utils [lsb-base]  3.06-4

Versions of packages icinga2-common recommends:
ii  logrotate  3.21.0-1

icinga2-common suggests no packages.

Reply via email to