Install an initscript for the NRPE addon (this was missing in the NRPE update patch).
Signed-off-by: Peter Müller peter.mueller@link38.eu --- lfs/nagios_nrpe | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 369f9335d..aa9a773be 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -89,5 +89,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install + + #install initscripts + $(call INSTALL_INITSCRIPT,nrpe) + @rm -rf $(DIR_APP) @$(POSTBUILD)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Where is the initscript?
[root@rice-oxley ipfire-2.x]# find src/initscripts/ -name nrpe [root@rice-oxley ipfire-2.x]#
On Tue, 2018-05-01 at 15:00 +0200, Peter Müller wrote:
Install an initscript for the NRPE addon (this was missing in the NRPE update patch).
Signed-off-by: Peter Müller peter.mueller@link38.eu
lfs/nagios_nrpe | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 369f9335d..aa9a773be 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -89,5 +89,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install
- #install initscripts
- $(call INSTALL_INITSCRIPT,nrpe)
- @rm -rf $(DIR_APP) @$(POSTBUILD)
Install initscript for NRPE addon.
The second version of this patch actually includes the initscript, which was missing due to lack of coffee the first time. :-)
Thanks to Michael for catching it.
Signed-off-by: Peter Müller peter.mueller@link38.eu --- lfs/nagios_nrpe | 4 ++++ src/initscripts/packages/nrpe | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/initscripts/packages/nrpe
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index bebb80144..af37f5076 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -90,5 +90,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make all $(MAKETUNING) cd $(DIR_APP) && make install cd $(DIR_APP) && make install-config + + #install initscripts + $(call INSTALL_INITSCRIPT,nrpe) + @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nrpe new file mode 100644 index 000000000..cd87c1703 --- /dev/null +++ b/src/initscripts/packages/nrpe @@ -0,0 +1,38 @@ +#!/bin/sh
+# Begin $rc_base/init.d/nrpe
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+NRPEBIN=/usr/bin/nrpe
+NRPECFG=/etc/nagios/nrpe.cfg
+
+case "$1" in
+ start)
+ boot_mesg "Starting nrpe..."
+ loadproc $NRPEBIN -c $NRPECFG -d
+ ;;
+
+ stop)
+ boot_mesg "Stopping nrpe..."
+ killproc $NRPEBIN
+ rm -f /var/run/nrpe.pid
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc $NRPEBIN
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/nrpe
Install initscript for NRPE addon.
The second version of this patch actually includes the initscript, which was missing due to lack of coffee the first time. :-)
Thanks to Michael for catching it.
Resent due to crappy linewrapping in initscript by MUA.
Signed-off-by: Peter Müller peter.mueller@link38.eu --- lfs/nagios_nrpe | 4 ++++ src/initscripts/packages/nrpe | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/initscripts/packages/nrpe
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index bebb80144..af37f5076 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -90,5 +90,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make all $(MAKETUNING) cd $(DIR_APP) && make install cd $(DIR_APP) && make install-config + + #install initscripts + $(call INSTALL_INITSCRIPT,nrpe) + @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nrpe new file mode 100644 index 000000000..cd87c1703 --- /dev/null +++ b/src/initscripts/packages/nrpe @@ -0,0 +1,38 @@ +#!/bin/sh
+# Begin $rc_base/init.d/nrpe + +. /etc/sysconfig/rc +. $rc_functions + +NRPEBIN=/usr/bin/nrpe +NRPECFG=/etc/nagios/nrpe.cfg + +case "$1" in + start) + boot_mesg "Starting nrpe..." + loadproc $NRPEBIN -c $NRPECFG -d + ;; + + stop) + boot_mesg "Stopping nrpe..." + killproc $NRPEBIN + rm -f /var/run/nrpe.pid + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc $NRPEBIN + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/nrpe
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
This patch is still corrupt and cannot be applied.
Please use git send-email.
- -Michael
On Mon, 2018-05-07 at 16:56 +0200, Peter Müller wrote:
Install initscript for NRPE addon.
The second version of this patch actually includes the initscript, which was missing due to lack of coffee the first time. :-)
Thanks to Michael for catching it.
Resent due to crappy linewrapping in initscript by MUA.
Signed-off-by: Peter Müller peter.mueller@link38.eu
lfs/nagios_nrpe | 4 ++++ src/initscripts/packages/nrpe | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/initscripts/packages/nrpe
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index bebb80144..af37f5076 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -90,5 +90,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make all $(MAKETUNING) cd $(DIR_APP) && make install cd $(DIR_APP) && make install-config
- #install initscripts
- $(call INSTALL_INITSCRIPT,nrpe)
- @rm -rf $(DIR_APP) @$(POSTBUILD)
diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nrpe new file mode 100644 index 000000000..cd87c1703 --- /dev/null +++ b/src/initscripts/packages/nrpe @@ -0,0 +1,38 @@ +#!/bin/sh
+# Begin $rc_base/init.d/nrpe
+. /etc/sysconfig/rc +. $rc_functions
+NRPEBIN=/usr/bin/nrpe +NRPECFG=/etc/nagios/nrpe.cfg
+case "$1" in
- start)
boot_mesg "Starting nrpe..."
loadproc $NRPEBIN -c $NRPECFG -d
- ;;
- stop)
boot_mesg "Stopping nrpe..."
killproc $NRPEBIN
rm -f /var/run/nrpe.pid
- ;;
- restart)
$0 stop
sleep 1
$0 start
;;
- status)
statusproc $NRPEBIN
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
+esac
+# End $rc_base/init.d/nrpe
Install initscript for NRPE addon.
The second version of this patch actually includes the initscript, which was missing due to lack of coffee the first time. :-)
Thanks to Michael for catching it.
Resent due to crappy linewrapping in initscript by MUA.
Signed-off-by: Peter Müller peter.mueller@link38.eu --- lfs/nagios_nrpe | 4 ++++ src/initscripts/packages/nrpe | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/initscripts/packages/nrpe
diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index bebb80144..11ce2ae77 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -90,5 +90,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make all $(MAKETUNING) cd $(DIR_APP) && make install cd $(DIR_APP) && make install-config + + # install initscript + $(call INSTALL_INITSCRIPT,nrpe) + @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nrpe new file mode 100644 index 000000000..8de798c06 --- /dev/null +++ b/src/initscripts/packages/nrpe @@ -0,0 +1,38 @@ +#!/bin/sh +# Begin $rc_base/init.d/nrpe + +. /etc/sysconfig/rc +. $rc_functions + +NRPEBIN=/usr/bin/nrpe +NRPECFG=/etc/nagios/nrpe.cfg + +case "$1" in + start) + boot_mesg "Starting nrpe..." + loadproc $NRPEBIN -c $NRPECFG -d + ;; + + stop) + boot_mesg "Stopping nrpe..." + killproc $NRPEBIN + rm -f /var/run/nrpe.pid + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc $NRPEBIN + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/nrpe