[Nagiosplug-help] Problem with the restarting of nrpe deamon

carole gimenez gimenez at cict.fr
Mon Jan 10 02:12:12 CET 2005


Hi,

I check with the help of nrpe addon (version 2.0) the local services
(disk space, swap space, load, total processes) of a remote host which
is a sun server (solaris 8).

When this host reboot, the nrpe deamon restart well but only the
check_disk is OK. The others checks returns this message:

NRPE: Unable to read output



I don't understand why it's happens. Nagios monitors others sun servers
checking also local services and all works fine when the hosts restart.

The init script for nrpe is the following:

#!/bin/sh
#
# Created 2000-01-03 by jaclu at grm.se
#
# nrpe This shell script takes care of starting and stopping
# nrpe.
#
# chkconfig: 2345 80 30
# description: nrpe is a daemon for a remote nagios server, \
# running nagios plugins on this host.
# processname: nrpe
# config: /usr/local/nagios/etc/nrpe.cfg

LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH


NrpeBin=/usr/local/nagios/bin/nrpe
NrpeCfg=/usr/local/nagios/etc/nrpe.cfg

# See how we were called.
case "$1" in
start)
# Start daemons.
echo "Starting nrpe: "
$NrpeBin -c $NrpeCfg -d
echo
;;
stop)
# Stop daemons.
echo -n "Shutting down nrpe: "
;;
restart)
;;
status)
status nrpe
;;
*)
echo "Usage: nrpe {start|stop|restart|status}"
exit 1
esac

exit 0


Does someone have an idea?

Thank for advance.

Carole.






More information about the Help mailing list