3
# Created 2000-01-03 by jaclu@grm.se
5
# nrpe This shell script takes care of starting and stopping
8
# chkconfig: 2345 80 30
9
# description: nrpe is a daemon for a remote nagios server, \
10
# running nagios plugins on this host.
12
# config: /usr/local/nagios/etc/nrpe.cfg
15
# Source function library
16
if [ -f /etc/rc.d/init.d/functions ]; then
17
. /etc/rc.d/init.d/functions
18
elif [ -f /etc/init.d/functions ]; then
19
. /etc/init.d/functions
20
elif [ -f /etc/rc.d/functions ]; then
24
# Source networking configuration.
25
. /etc/sysconfig/network
27
# Check that networking is up.
28
[ ${NETWORKING} = "no" ] && exit 0
31
NrpeCfg=@sysconfdir@/nrpe.cfg
32
LockFile=/var/lock/subsys/nrpe
34
# See how we were called.
38
echo -n "Starting nrpe: "
39
daemon $NrpeBin -c $NrpeCfg -d
45
echo -n "Shutting down nrpe: "
58
echo "Usage: nrpe {start|stop|restart|status}"