Discussion:
[Nagios-users] nrpe on RedHat 9
Martin, Jeremy
2003-06-16 14:40:34 UTC
Permalink
Hi,

I'm having a little difficulty getting nrpe to run on a RedHat 9 linux server using xinetd.

I added this to /etc/xinetd.conf

service nrpe
{
flags = REUSE
log_on_failure += USERID
socket_type = stream
user = nagios
group = nagios
server = /etc/nrpe/nrpe
server_args = -c /etc/nrpe/nrpe.cfg --inetd
wait = no
only_from = 192.168.100.2
}

I also allowed 192.168.100.2 in /etc/hosts.allow

For some reason nrpe doesn't show up when I ps -ax | grep nrpe... I think that's normal for xinetd services but I just wanted to make sure.

One thing I noticed is that in /var/log/messages it says:

Jun 16 11:34:24 zion nrpe[2413]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Jun 16 11:34:24 zion nrpe[2413]: Error: Could not complete SSL handshake. 1

each time the nagios server tries to connect to the client. I just ssh'd from the nagios client -> server, and from the server -> client, and told it to save the server fingerprint.. It still didn't fix it unfortunately. I'm at a loss as to how to set up the SSL handshake. Any clues?

Thanks!
Jeremy Martin
Martin, Jeremy
2003-06-16 14:45:26 UTC
Permalink
Oops, I just noticed there is a separate README.SSL file... I'm updating my OpenSSL to 0.9.7a or higher as recommended. If there's more to it than just that I would still appreciate any hints.

Thanks
Jeremy
Martin, Jeremy
2003-06-16 17:42:08 UTC
Permalink
By the way...

It wasn't work with nrpe v2.x because I still had v1.5 of check_nrpe on my Nagios server.

I can now get it to work ok if I run it as /etc/nrpe/nrpe -d /etc/nrpe/nrpe.cfg manually (I added it to /etc/rc.d/rc.local so its started automatically upon reboot)... but trying to run nrpe with -i instead of -d still causes "CHECK_NRPE: Error receiving data from host." errors. Ah well, at least it's working, somehow, now.

Just saying all this for the record in case anyone runs into this in the future and bothers to search the archives...

Jeremy
Mikel Bauer
2003-06-16 18:09:24 UTC
Permalink
Jeremy,

You might also want to make sure that if you are running it via xinetd
(or trying to), that you either are specifying it as an unregistered
service, or add the nrpe port to the services file.
Post by Martin, Jeremy
By the way...
It wasn't work with nrpe v2.x because I still had v1.5 of check_nrpe on my Nagios server.
I can now get it to work ok if I run it as /etc/nrpe/nrpe -d /etc/nrpe/nrpe.cfg manually (I added it to /etc/rc.d/rc.local so its started automatically upon reboot)... but trying to run nrpe with -i instead of -d still causes "CHECK_NRPE: Error receiving data from host." errors. Ah well, at least it's working, somehow, now.
Just saying all this for the record in case anyone runs into this in the future and bothers to search the archives...
Jeremy
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
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
--
Mikel Bauer
Martin, Jeremy
2003-06-16 19:24:07 UTC
Permalink
Post by Mikel Bauer
You might also want to make sure that if you are running it
via xinetd
(or trying to), that you either are specifying it as an unregistered
service, or add the nrpe port to the services file.
I did add it to the service file. Does an xinetd restart reload the service file or do you have to do something more to reload it?

Cheers
Jeremy
Carroll, Jim P [Contractor]
2003-06-16 19:52:12 UTC
Permalink
Two things:

1) Make sure you have nrpe defined for tcp port 5666 in your
/etc/services file

2) It appears the version of NRPE you have installed on your
client is different from the version you have installed
on your server. Make sure they're the same.

jc
-----Original Message-----
Sent: Monday, June 16, 2003 11:40 AM
Subject: [Nagios-users] nrpe on RedHat 9
Hi,
I'm having a little difficulty getting nrpe to run on a
RedHat 9 linux server using xinetd.
I added this to /etc/xinetd.conf
service nrpe
{
flags = REUSE
log_on_failure += USERID
socket_type = stream
user = nagios
group = nagios
server = /etc/nrpe/nrpe
server_args = -c /etc/nrpe/nrpe.cfg --inetd
wait = no
only_from = 192.168.100.2
}
I also allowed 192.168.100.2 in /etc/hosts.allow
For some reason nrpe doesn't show up when I ps -ax | grep
nrpe... I think that's normal for xinetd services but I just
wanted to make sure.
Jun 16 11:34:24 zion nrpe[2413]: INFO: SSL/TLS initialized.
All network traffic will be encrypted.
Jun 16 11:34:24 zion nrpe[2413]: Error: Could not complete
SSL handshake. 1
each time the nagios server tries to connect to the client. I
just ssh'd from the nagios client -> server, and from the
server -> client, and told it to save the server
fingerprint.. It still didn't fix it unfortunately. I'm at a
loss as to how to set up the SSL handshake. Any clues?
Thanks!
Jeremy Martin
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
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
Loading...