NRPE 4.0.0 (xinet.d)

5 posts / 0 new
Last post
regNov
Offline
Last seen: 8 years 11 months ago
Joined: 05.05.2011 - 10:32
NRPE 4.0.0 (xinet.d)

Hello,

with the NRPE 3.0.3 some of my monitored servers had handshake problems with the SSL(CHECK_NRPE: Error - Could not complete SSL handshake)
I was hoping the update to NRPE 4.0.0 will solve this issue, but there are still timeouts on a few windows servers.

I found an post on:

http://www.siamkia.com/open-source-help/how-to-fix-check-nrpe-error-coul...

to run the NRPE as an stand alone Deamon. Is it also possible to configure NRPE 4.0.0 like this on Windows machines?

 

 

 

itefix
Offline
Last seen: 8 hours 10 min ago
Joined: 01.05.2008 - 21:33
Thanks for the link. Xinet

Thanks for the link. Xinet configuration file for the nrpe service is in the etc\xinetd.d directory (file nrpe):

 

# default: on
# description: NRPE
service nrpe
{
type = UNLISTED
flags = REUSE
port = 5666
socket_type = stream       
wait = no
user = SvcXinet
server = /bin/nrpe
server_args = -c /nrpe.cfg --inetd
log_on_failure += USERID
disable = no
# only_from       = <ipaddress1> <ipaddress2> ...
}

You can simply remove comment mark from the only_from directive and specify your Nagios host's IP address

only_from       = ip.add.re.ss

regNov
Offline
Last seen: 8 years 11 months ago
Joined: 05.05.2011 - 10:32
Hi, well I did that just

Hi,

well I did that just before my post, but after I removed the comment mark and add my Nagwin server IP, NRPE comes up with "connection refused by host". Had to reinstall NRPE 4.0 to get back to normal... ( maybe it crashed because i removed the command marks in the nrpe.cfg at "allowed_host" and "server_port" too, but i dont think so).

Anyway I would like to change the command timeout like this:

/usr/local/nagios/check_nrpe -H ip.add.re.ss -c pdm_disk_c -t 30

Want to add this to my nrpe.cfg, but i cant find the win_nrpe Syntax anymore... can I simlpy add "-t" to my hardcoded command arguments?

itefix
Offline
Last seen: 8 hours 10 min ago
Joined: 01.05.2008 - 21:33
Ah, the problem is probably

Ah, the problem is probably due to the file format. It works perfectly on my test environment. Please convert file nrpe to Unix format by using d2u tool available in bin directory. Open a DOS command, move to etc/xinetd.d directory and issue the command below:

 

..\bin\d2u nrpe

 

You can now restart Xinet service to make changes in effect. hope it helps.

regNov
Offline
Last seen: 8 years 11 months ago
Joined: 05.05.2011 - 10:32
Yes, NRPE runs now as a

Yes, NRPE runs now as a standalone deamon.

Thanks!