NRPE just won't start on Solaris.

Alex St. Amand astamand at ati.com
Thu Oct 30 19:19:47 CET 2003


Thanks guys.  I changed the port number in both services and the nrpe.cfg
file (even though there were no conflicts I could find) and I am able to
start it up as a daemon.  I can not get it to start by HUP'ing inetd but I
am less concerned about that for the moment.
 
I did correct the line in the inetd.conf file as you suggested Phil.
 
Now it works as long as I specify the new port number with the check_nrpe
command.
 
Thank you very much for your help.
 
-Alex
 
 
 
 
-----Original Message-----
From: Garrett, Matt M SITI-ITDIEEE [mailto:matt.garrett at shell.com] 
Sent: Thursday, October 30, 2003 10:35 AM
To: Alex St. Amand
Subject: RE: [Nagios-users] NRPE just won't start on Solaris.
 
Alex
 
Very odd
 
What config options did you give it.
Assuming you are using openssl , which version
What version of OS , Gcc compiler.
 
since patch was applied , I asume a reboot was done.
 
I asume it is the latest version of nrpe , from the web pages.
 
I know when I first started looking at nrpe about 3 months ago it was a big
job to get it working.
But I thought the latest build worked fine.
 
One last thing you could try is doing a truss on the process to see if that
shows any thing usfull ?
 
Let me know.
 
Matt
 
Matthew Garrett 
Unix System Support 
Shell Information Technology International Limited 
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom 
Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373 
Email: Matt.M.Garrett at is.shell.com 
Internet: http://www.shell.com <http://www.shell.com/>  
-----Original Message-----
From: Alex St. Amand [mailto:astamand at ati.com]
Sent: 30 October 2003 15:23
To: Garrett, Matt M SITI-ITDIEEE; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] NRPE just won't start on Solaris.
Matt,
 
That's the odd thing, the server port is correct:
 
# cat /usr/local/nagios/etc/nrpe.cfg | grep server_port
server_port=5666
 
I tried starting it as a daemon like this:
 
# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
 
...and it just returns to the prompt.  If I grep processes for nrpe there's
nothing
 
except another one of those error messages in the log file
 
Thanks
 
-Alex
 
 
 
 
-----Original Message-----
From: Garrett, Matt M SITI-ITDIEEE [mailto:matt.garrett at shell.com] 
Sent: Thursday, October 30, 2003 9:56 AM
To: Alex St. Amand; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] NRPE just won't start on Solaris.
 
Alex
 
Have a check in /usr/local/nagios/etc/nrpe.cfg
what does the server_port say it is set to.
By default it should be 5666 , but your error logs seem to say it is trying
to use port 125 that is all ready used by something else.
 
I would also try running from the command line e.g
/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
 
To see if that sheds any light on the problem.
 
Hope this help's
 
Matt
Matthew Garrett 
Unix System Support 
Shell Information Technology International Limited 
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom 
-----Original Message-----
From: Alex St. Amand [mailto:astamand at ati.com]
Sent: 30 October 2003 14:40
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] NRPE just won't start on Solaris.
Hello,
I am trying to get NRPE running on a Solaris 8 system.  The plugins have
compiled correctly and the system has the /dev/random patch applied.  The
problem I am having is getting NRPE to start.  It just does nothing.  I have
enclosed the entries from both /etc/services and /etc/inetd.conf.  I have
also enclosed a message I found in /var/adm/messages indicating the address
is already in use (which I assume it means port # which is not the case).
I HUP, and I HUP, but it just wont start.  The nagios user exists and owns
and can execute the binary as well as read the config file.
Did I miss something here?
 
FROM /ETC/SERVICES:
nrpe    5666/tcp                                # Nagios
 
FROM /ETC/INETD.CONF:
nrpe    stream   tcp    nowait   nagios  /usr/local/nagios/bin/nrpe -c
/usr/local/nagios/etc/nrpe.cfg -inetd
 
FROM /VAR/ADM/MESSAGES:
Oct 30 08:55:04 smbck1 nrpe[1361]: [ID 434846 daemon.error] Network server
bind failure (125: Address already in use)
 
$ cat /etc/services | grep 5666
nrpe    5666/tcp                                # Nagios
$
 
Thank you!
Alex St. Amand
Information Technology
ATI Research, Inc.
62 Forest Street
Marlborough, MA 01752
 <mailto:astamand at ati.com> astamand at ati.com
(508) 263-4843
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031030/e18420df/attachment.html>


More information about the Users mailing list