Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
NRPE init script
+++ NRPE init script
Is this provided with NRPE somewhere? I don't know. It seems weird that it isn't. Anyways, I modified my apache init script to start NRPE. Maybe it is useful to you as well
++++ Installation
This is a very standard procedure. Add 'nrpe' to '/etc/init.d/' or wherever your init scripts go. Then add nrpe to the run levels you want it to start by creating symlinks or for Red Hat type distributions
/sbin/chkconfig --add nrpe
/sbin/chkconfig --list nrpe
It will automatically start in run levels 3 and 5 by default.
Is this provided with NRPE somewhere? I don't know. It seems weird that it isn't. Anyways, I modified my apache init script to start NRPE. Maybe it is useful to you as well
++++ Installation
This is a very standard procedure. Add 'nrpe' to '/etc/init.d/' or wherever your init scripts go. Then add nrpe to the run levels you want it to start by creating symlinks or for Red Hat type distributions
/sbin/chkconfig --add nrpe
/sbin/chkconfig --list nrpe
It will automatically start in run levels 3 and 5 by default.
Reviews (2)
byblackrino9, April 26, 2017
remove -n from line 30 if you want to use SSL
OPTIONS='-c /usr/local/nagios/etc/nrpe.cfg -d'
OPTIONS='-c /usr/local/nagios/etc/nrpe.cfg -d'
byhikerguy86, November 8, 2016
1 of 1 people found this review helpful
thanks for this.
I needed to modify it to be correct for install from repo, you assumed source install in the script. Noticed on RHEL 5.11, rpm from EPEL also didn't have init script :(
Also a couple variable were mixed up. fixed it up and it works.
I needed to modify it to be correct for install from repo, you assumed source install in the script. Noticed on RHEL 5.11, rpm from EPEL also didn't have init script :(
Also a couple variable were mixed up. fixed it up and it works.