Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

NRPE init script

Rating
2 votes
Favoured:
0
Hits
166512
Files:
FileDescription
nrpethe nrpe script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Just a script to facilitate restarts of nrpe and automatically start the nrpe daemon at different run levels.
+++ 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.
Reviews (2)
remove -n from line 30 if you want to use SSL
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.