From 580f72d9196b4e5cf61fcbc61548a079fa4a4ccb Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Thu, 15 Dec 2016 07:51:22 +0100 Subject: [PATCH] patches: add nagios-debian-paths.patch Also fix path to nagios socket in default collectd.conf Thanks to Bas Couwenberg! --- debian/changelog | 4 +++- debian/collectd.conf | 2 +- debian/patches/nagios-debian-paths.patch | 24 ++++++++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 debian/patches/nagios-debian-paths.patch diff --git a/debian/changelog b/debian/changelog index 955300f..69293d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,7 +15,9 @@ collectd (5.7.0-1) UNRELEASED; urgency=medium - Build-depend on libmicrohttpd-dev: Needed by the new write_prometheus plugin. * debian/patches: - Removed configure_find_lc_all.patch; included upstream. + - Removed configure_find_lc_all.patch; included upstream. + - Added nagios-debian-paths.patch, to use nagios-nrpe-server & + monitoring-plugin paths for Debian. Thanks to Bas Couwenberg. -- Marc Fournier Tue, 13 Dec 2016 21:27:06 +0100 diff --git a/debian/collectd.conf b/debian/collectd.conf index f1759b6..d903119 100644 --- a/debian/collectd.conf +++ b/debian/collectd.conf @@ -813,7 +813,7 @@ LoadPlugin users # # -# CommandFile "/usr/local/nagios/var/rw/nagios.cmd" +# CommandFile "/var/lib/icinga/rw/icinga.cmd" # # diff --git a/debian/patches/nagios-debian-paths.patch b/debian/patches/nagios-debian-paths.patch new file mode 100644 index 0000000..41e7bf7 --- /dev/null +++ b/debian/patches/nagios-debian-paths.patch @@ -0,0 +1,24 @@ +Description: Use paths for nagios-nrpe-server & monitoring-plugins Debian packages. +Author: Bas Couwenberg + +--- a/contrib/exec-nagios.conf ++++ b/contrib/exec-nagios.conf +@@ -1,15 +1,15 @@ + # Run `perldoc exec-nagios.px' for details on this config file. + +-NRPEConfig /etc/nrpe.cfg ++NRPEConfig /etc/nagios/nrpe.cfg + + Interval 300 + +- + +- diff --git a/debian/patches/series b/debian/patches/series index 5e9e15a..8c3f46b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ rrd_filter_path.patch collection_conf_path.patch myplugin_includes.patch +nagios-debian-paths.patch -- 2.30.2