The attached patch adds the nagios3 location, and leaves the nagios and
nagios2 locations commented out.

-- 
credativ ltd         UK office:  +44 1788 298150
PO Box 3868          Direct ext: +44 1788 298152
Rugby                Email:      [email protected]
CV21 3WW             Web:        http://www.credativ.co.uk/

credativ limited is registered in England & Wales, company no. 5261743
registered office: Suite 2 Bloxam Court, Corporation Street, Rugby CV21 2DU
diff -u nsca-2.6/debian/patches/04_nsca.cfg_nagios_vs_nagios.dpatch nsca-2.6/debian/patches/04_nsca.cfg_nagios_vs_nagios.dpatch
--- nsca-2.6/debian/patches/04_nsca.cfg_nagios_vs_nagios.dpatch
+++ nsca-2.6/debian/patches/04_nsca.cfg_nagios_vs_nagios.dpatch
@@ -5,25 +5,28 @@
 ## DP: No description.
 
 @DPATCH@
-diff -urNad nsca-2.5~/sample-config/nsca.cfg.in nsca-2.5/sample-config/nsca.cfg.in
---- nsca-2.5~/sample-config/nsca.cfg.in	2006-01-22 01:14:55.000000000 +0100
-+++ nsca-2.5/sample-config/nsca.cfg.in	2006-02-12 21:13:43.000000000 +0100
-@@ -56,8 +56,12 @@
+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_fi...@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
++#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
-@@ -70,8 +74,7 @@
+ # 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...
  

Reply via email to