[Pkg-nagios-devel] Bug#898833: icinga2-common: included postgres checkcommand using wrong path

Jens Holzkämper jens at zbmath.org
Wed May 16 11:31:23 BST 2018


Package: icinga2-common
Version: 2.6.0-2
Severity: normal
Tags: patch

/usr/share/icinga2/include/plugins-contrib.d/databases.conf defines a couple of 
CheckCommands for databases. The one defined for postgres references 
[ PluginContribDir + "/check_postgres.pl" ] as command but the check_postgres 
package in Debian installs to /usr/bin/check_postgres; so the following patch 
should fix this:



Description: Configuration changes for Debian
    - change commmand for CheckCommand postgres to correct path
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- /usr/share/icinga2/include/plugins-contrib.d/databases.conf
+++ /usr/share/icinga2/include/plugins-contrib.d/databases2.conf
@@ -419,7 +419,7 @@
 object CheckCommand "postgres" {
 	import "ipv4-or-ipv6"
 
-	command = [ PluginContribDir + "/check_postgres.pl" ]
+	command = [ "/usr/bin/check_postgres" ]
 
 	arguments = {
 		"-H" = {




-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages icinga2-common depends on:
ii  adduser              3.115
ii  init-system-helpers  1.48
ii  lsb-base             9.20161125
ii  lsb-release          9.20161125

Versions of packages icinga2-common recommends:
ii  logrotate  3.11.0-0.1

icinga2-common suggests no packages.



More information about the Pkg-nagios-devel mailing list