[Pkg-nagios-changes] [pkg-nagios] r59 - nagios2/trunk/debian

Marc Haber zugschlus at costa.debian.org
Fri Jan 20 17:04:42 UTC 2006


Author: zugschlus
Date: 2006-01-20 17:04:41 +0000 (Fri, 20 Jan 2006)
New Revision: 59

Modified:
   nagios2/trunk/debian/README.Debian
   nagios2/trunk/debian/cfg-nagios.cfg.diff
   nagios2/trunk/debian/changelog
Log:
  * Fix location of external command file
  * Document "how to enable external commands" in README.Debian



Modified: nagios2/trunk/debian/README.Debian
===================================================================
--- nagios2/trunk/debian/README.Debian	2006-01-20 16:58:51 UTC (rev 58)
+++ nagios2/trunk/debian/README.Debian	2006-01-20 17:04:41 UTC (rev 59)
@@ -13,3 +13,27 @@
 manually edit /etc/nagios2/apache.conf (activating all lines preceded
 by "# nagios 1.x")to have nagios2 take over the nagios 1.x URLs. If
 you enable these with nagios 1 still present, the results are undefined.
+
+
+External Commands
+^^^^^^^^^^^^^^^^^
+Nagios 2 is not configured to look for external commands in the
+default configuration as a security feature. To enable external
+commands, use the instructions given at
+http://nagios.sourceforge.net/docs/2_0/commandfile.html, replacing
+/usr/local/nagios/var/rw with /var/lib/nagios2/rw and nobody with
+www-data. Then set check_external_commands=1 in
+/etc/nagios2/nagios.cfg.
+
+These commands will set up the permissions properly for a nagios 2
+release candidate. Please verify with the web page quoted above before
+trying.
+
+groupadd nagiocmd
+usermod -G nagiocmd nagios
+usermod -G nagiocmd www-data
+mkdir /var/lib/nagios2/rw
+chown nagios:nagiocmd /var/lib/nagios2/rw
+chmod u+rwx /var/lib/nagios2/rw
+chmod g+rwx /var/lib/nagios2/rw
+chmod g+s /var/lib/nagios2/rw

Modified: nagios2/trunk/debian/cfg-nagios.cfg.diff
===================================================================
--- nagios2/trunk/debian/cfg-nagios.cfg.diff	2006-01-20 16:58:51 UTC (rev 58)
+++ nagios2/trunk/debian/cfg-nagios.cfg.diff	2006-01-20 17:04:41 UTC (rev 59)
@@ -58,15 +58,6 @@
  
  
  
-@@ -159,7 +155,7 @@
- # directory level instead of on the file, as the file is deleted every
- # time its contents are processed.
- 
--command_file=/var/lib/nagios2/rw/nagios.cmd
-+command_file=/var/lib/nagios2/nagios.cmd
- 
- 
- 
 @@ -167,7 +163,7 @@
  # This is the file that Nagios will use for storing host and service
  # comments.

Modified: nagios2/trunk/debian/changelog
===================================================================
--- nagios2/trunk/debian/changelog	2006-01-20 16:58:51 UTC (rev 58)
+++ nagios2/trunk/debian/changelog	2006-01-20 17:04:41 UTC (rev 59)
@@ -12,8 +12,10 @@
   * fix permissions on /var/log/nagios2 to allow web interface to
     access event log
   * fix rw2 to rw in postinst
+  * Fix location of external command file
+  * Document "how to enable external commands" in README.Debian
 
- -- Marc Haber <mh+debian-packages at zugschlus.de>  Fri, 20 Jan 2006 16:58:18 +0000
+ -- Marc Haber <mh+debian-packages at zugschlus.de>  Fri, 20 Jan 2006 17:03:21 +0000
 
 nagios2 (0rc2-2.0-0) experimental; urgency=low
 




More information about the Pkg-nagios-changes mailing list