nrpe doesn't start after rebooting solaris server

Lalita Drolia ldrolia at bea.com
Thu Aug 23 07:18:46 CEST 2007


Hi,

I rebooted a solaris server and nrpe did not start on its own. I was
able to resolve it by doing the following on solaris 10-

Add the following entry to /etc/inetd.conf: 

     nrpe    stream  tcp     nowait  nagios /usr/local/nagios/nrpe -c
/usr/local/nagios/nrpe.cfg --inetd

Then run the following command- 

#inetconv -i /etc/inetd.conf 

 

But "inetconv" command is not available in solaris 9 and 8. so nrpe is
not starting on those servers after a reboot.

My configuration on solaris 8 and 9 boxes is-

Add the following file "nrpe" under /etc/init.d -

#!/sbin/sh

#

# /etc/init.d/nagios startup script

#

case "$1" in

start)

[ -f /usr/local/nagios/nrpe.cfg ] || exit 0

# start nagios

cd /usr/local/nagios

./nrpe -c /usr/local/nagios/nrpe.cfg --daemon

;;

stop)

# stop nagios

echo "use ps to kill nrpe"

;;

*)

echo "Usage: $0 { start | stop }"

exit 1

;;

esac

exit 0

now open nrpe.cfg in /usr/local/nagios and add server ip address

allowed_hosts=127.0.0.1, 172.22.48.7

Start nrpe as daemon in solaris by issuing following command-

#/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --deamon

 

I tried starting nrpe with -inetd switch instead of as a daemon but the
process is not getting started.

 

Kindly help.

 

Regards,

Lalita


Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070822/b9f861aa/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list