Silvan Calarco
c4e68e7c68
install a default nrpe command configuration for nagios [release 2.15-2mamba;Wed May 07 2014]
24 lines
574 B
Diff
24 lines
574 B
Diff
--- nrpe-2.13/init-script.in 2012-10-23 22:51:11.000000000 +0200
|
|
+++ nrpe-2.13/init-script.in.sysconfig 2012-10-23 22:55:13.000000000 +0200
|
|
@@ -24,6 +24,11 @@
|
|
# Source networking configuration.
|
|
. /etc/sysconfig/network
|
|
|
|
+# Extra configuration options
|
|
+if [ -f /etc/sysconfig/nrpe ]; then
|
|
+ . /etc/sysconfig/nrpe
|
|
+fi
|
|
+
|
|
# Check that networking is up.
|
|
[ ${NETWORKING} = "no" ] && exit 0
|
|
|
|
@@ -36,7 +41,7 @@
|
|
start)
|
|
# Start daemons.
|
|
echo -n "Starting nrpe: "
|
|
- daemon $NrpeBin -c $NrpeCfg -d
|
|
+ daemon $NrpeBin -c $NrpeCfg -d $NRPE_OPTS
|
|
echo
|
|
touch $LockFile
|
|
;;
|