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

Directory Tree

NRPE init script

Rating
2 votes
Favoured:
0
Hits
169856
Files:
FileDescription
nrpethe nrpe script
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.