Title: [opsview-base] [301] Move nrpe.pid to /var/tmp
- Revision
- 301
- Author
- dferguson
- Date
- 2013-07-03 13:31:33 +0100 (Wed, 03 Jul 2013)
Log Message
Move nrpe.pid to /var/tmp
Since nrpe is run as nagios and /var/run is root owned, the pid file cannot be written.
Move to /var/tmp/ which should always be writable rather than run nrpe as root (due to security considerations)
Modified Paths
Modified: trunk/debian/opsview-agent.init.d
===================================================================
--- trunk/debian/opsview-agent.init.d 2013-07-03 12:20:25 UTC (rev 300)
+++ trunk/debian/opsview-agent.init.d 2013-07-03 12:31:33 UTC (rev 301)
@@ -18,7 +18,7 @@
NAME=opsview-agent
DESC=opsview-agent
CONFIG=/usr/local/nagios/etc/nrpe.cfg
-PIDFILE=/var/run/nrpe.pid
+PIDFILE=/var/tmp/nrpe.pid
# Problem due to file descriptor left open by Debian apt-get process
exec 3>/dev/null
Modified: trunk/nrpe.cfg.in
===================================================================
--- trunk/nrpe.cfg.in 2013-07-03 12:20:25 UTC (rev 300)
+++ trunk/nrpe.cfg.in 2013-07-03 12:31:33 UTC (rev 301)
@@ -28,7 +28,7 @@
# number. The file is only written if the NRPE daemon is started by the root
# user and is running in standalone mode.
-pid_file=/var/run/nrpe.pid
+pid_file=/var/tmp/nrpe.pid
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins