nsca (2.9.1-2) 04_nsca.cfg_nagios_vs_nagios.dpatch

Summary

 sample-config/nsca.cfg.in |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_nsca.cfg_nagios_vs_nagios.dpatch by  <seanius@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad nsca-2.6~/sample-config/nsca.cfg.in nsca-2.6/sample-config/nsca.cfg.in
--- nsca-2.6~/sample-config/nsca.cfg.in	2006-04-06 22:19:30.000000000 +0100
+++ nsca-2.6/sample-config/nsca.cfg.in	2009-02-19 15:11:22.000000000 +0000
@@ -77,9 +77,14 @@
 # COMMAND FILE
 # This is the location of the Nagios command file that the daemon
 # should write all service check results that it receives.
-
-command_file=@localstatedir@/rw/nagios.cmd
-
+# Note to debian users: nagios 1.x and nagios 2.x have
+# different default locations for this file.  this is the
+# default location for nagios 1.x:
+#command_file=/var/run/nagios/nagios.cmd
+# and this is the default location for nagios2:
+#command_file=/var/lib/nagios2/rw/nagios.cmd
+# and this is the default location for nagios3:
+command_file=/var/lib/nagios3/rw/nagios.cmd
 
 # ALTERNATE DUMP FILE
 # This is used to specify an alternate file the daemon should
@@ -91,8 +96,7 @@
 # it starts Nagios.  Or you may simply choose to ignore any
 # check results received while Nagios was not running...
 
-alternate_dump_file=@localstatedir@/rw/nsca.dump
-
+alternate_dump_file=/var/run/nagios/nsca.dump
 
 
 # AGGREGATED WRITES OPTION