summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d32779a)
raw | patch | inline | side by side (parent: d32779a)
author | Sven Velt <sven@velt.de> | |
Wed, 26 Jan 2011 13:42:14 +0000 (14:42 +0100) | ||
committer | Sven Velt <sven@velt.de> | |
Wed, 26 Jan 2011 13:42:14 +0000 (14:42 +0100) |
debian/patches/apache-fix-path-to-userfile | [new file with mode: 0644] | patch | blob |
debian/patches/fix-nagios-url | [new file with mode: 0644] | patch | blob |
debian/patches/fix-npcd-path | [new file with mode: 0644] | patch | blob |
debian/patches/raise-process-perfdata-timeout | [new file with mode: 0644] | patch | blob |
debian/patches/series | patch | blob | history | |
debian/rules | patch | blob | history |
diff --git a/debian/patches/apache-fix-path-to-userfile b/debian/patches/apache-fix-path-to-userfile
--- /dev/null
@@ -0,0 +1,13 @@
+Index: pkg-pnp4nagios/sample-config/httpd.conf.in
+===================================================================
+--- pkg-pnp4nagios.orig/sample-config/httpd.conf.in 2011-01-26 14:40:26.943054015 +0100
++++ pkg-pnp4nagios/sample-config/httpd.conf.in 2011-01-26 14:40:40.599054016 +0100
+@@ -11,7 +11,7 @@
+ #
+ AuthName "Nagios Access"
+ AuthType Basic
+- AuthUserFile /usr/local/nagios/etc/htpasswd.users
++ AuthUserFile /etc/nagios3/htpasswd.users
+ Require valid-user
+ <IfModule mod_rewrite.c>
+ # Turn on URL rewriting
diff --git a/debian/patches/fix-nagios-url b/debian/patches/fix-nagios-url
--- /dev/null
@@ -0,0 +1,13 @@
+Index: pkg-pnp4nagios/sample-config/pnp/config.php.in
+===================================================================
+--- pkg-pnp4nagios.orig/sample-config/pnp/config.php.in 2011-01-26 14:17:43.971054016 +0100
++++ pkg-pnp4nagios/sample-config/pnp/config.php.in 2011-01-26 14:17:57.167054016 +0100
+@@ -73,7 +73,7 @@
+ #
+ # Link back to Nagios or Thruk ( www.thruk.org )
+ #
+-$conf['nagios_base'] = "/nagios/cgi-bin";
++$conf['nagios_base'] = "/cgi-bin/nagios3";
+
+ #
+ # Link back to check_mk´s multisite ( http://mathias-kettner.de/checkmk_multisite.html )
diff --git a/debian/patches/fix-npcd-path b/debian/patches/fix-npcd-path
--- /dev/null
@@ -0,0 +1,22 @@
+Index: pkg-pnp4nagios/sample-config/pnp/npcd.cfg-sample.in
+===================================================================
+--- pkg-pnp4nagios.orig/sample-config/pnp/npcd.cfg-sample.in 2011-01-26 14:33:43.595054016 +0100
++++ pkg-pnp4nagios/sample-config/pnp/npcd.cfg-sample.in 2011-01-26 14:36:53.351054016 +0100
+@@ -76,7 +76,7 @@
+ # perfdata_spool_dir = </path/to/directory/>
+ #
+
+-perfdata_spool_dir = @PERFDATA_SPOOL_DIR@/
++perfdata_spool_dir = @PERFDATA_SPOOL_DIR@/npcd/
+
+
+ # Execute following command for each found file
+@@ -163,7 +163,7 @@
+ # perfdata_file = </path/to/file>
+ #
+
+-perfdata_file = @localstatedir@/perfdata.dump
++perfdata_file = @PERFDATA_SPOOL_DIR@/nagios/perfdata.dump
+
+
+ # perfdata_spool_filename - declare the destination
diff --git a/debian/patches/raise-process-perfdata-timeout b/debian/patches/raise-process-perfdata-timeout
--- /dev/null
@@ -0,0 +1,13 @@
+Index: pkg-pnp4nagios/sample-config/pnp/process_perfdata.cfg-sample.in
+===================================================================
+--- pkg-pnp4nagios.orig/sample-config/pnp/process_perfdata.cfg-sample.in 2011-01-26 14:39:08.995054016 +0100
++++ pkg-pnp4nagios/sample-config/pnp/process_perfdata.cfg-sample.in 2011-01-26 14:39:14.327054015 +0100
+@@ -6,7 +6,7 @@
+ #
+ # process_perfdata.pl Timeout in seconds
+ #
+-TIMEOUT = 5
++TIMEOUT = 10
+
+ #
+ # Use RRDs Perl module
diff --git a/debian/patches/series b/debian/patches/series
index 2ef2caad6b7180a9f6e806237bdb990f41684d04..7cb3847b14e42efabf8e0795555a57232c0c4cdd 100644 (file)
--- a/debian/patches/series
+++ b/debian/patches/series
+apache-fix-path-to-userfile
+raise-process-perfdata-timeout
+fix-npcd-path
+fix-nagios-url
adjust-template-path
diff --git a/debian/rules b/debian/rules
index 1434a8116874c289e275ea49e894adead435be9b..9ba49a94aad011187406d57a8d98e2ab2f7c46ed 100644 (file)
--- a/debian/rules
+++ b/debian/rules
mkdir $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/templates.special
# Copy, rename and fix sample configs and examples
- sed -i -e 's#/nagios/cgi-bin#/cgi-bin/nagios3#' $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/config.php
+ # sed -i -e 's#/nagios/cgi-bin#/cgi-bin/nagios3#' $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/config.php
mv $(CURDIR)/debian/pnp4nagios/usr/bin/npcd \
$(CURDIR)/debian/pnp4nagios/usr/sbin/
mv $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/npcd.cfg-sample \
$(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/npcd.cfg
- sed -i -e 's#/var/spool/pnp4nagios/#&npcd/#' \
- -e 's#/var/log/pnp4nagios/perfdata.dump#/var/spool/pnp4nagios/nagios/perfdata.dump#' \
- $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/npcd.cfg
+ #sed -i -e 's#/var/spool/pnp4nagios/#&npcd/#' \
+ # -e 's#/var/log/pnp4nagios/perfdata.dump#/var/spool/pnp4nagios/nagios/perfdata.dump#' \
+ # $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/npcd.cfg
mv $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/process_perfdata.cfg-sample \
$(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/process_perfdata.cfg
- sed -i -e 's/TIMEOUT = 5/TIMEOUT = 15/' \
- $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/process_perfdata.cfg
+ #sed -i -e 's/TIMEOUT = 5/TIMEOUT = 15/' \
+ # $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/process_perfdata.cfg
mv $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/rra.cfg-sample \
$(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/rra.cfg
cp -av $(CURDIR)/debian/check_commands/* $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/check_commands/
# Apache config file
- # FIXME
- sed -i 's#/usr/local/nagios/etc/htpasswd.users#/etc/nagios3/htpasswd.users#' $(CURDIR)/sample-config/httpd.conf
+ #sed -i 's#/usr/local/nagios/etc/htpasswd.users#/etc/nagios3/htpasswd.users#' $(CURDIR)/sample-config/httpd.conf
cp -av $(CURDIR)/sample-config/httpd.conf $(CURDIR)/debian/pnp4nagios/etc/pnp4nagios/apache.conf
# Add subdirs to /var/spool/pnp4nagios/ to prepare for different modes