Box293 wrote:raamardhani7 wrote:I have added the below mentioned ones in nrpe.cfg and recycled the xinetd:
[root@uusrcpmwik00 etc]# grep 127.0.0.1 nrpe.cfg
#server_address=127.0.0.1
allowed_hosts=127.0.0.1,10.10.83.90
When NRPE is run under xinetd, the setting in nrpe.cfg is ignored.
When logged onto uusrcpmwik00, execute the command against the local server:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
When logged onto Nagios XI, execute the following command:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H uusrcpmwik00
Hi...
Output from Nagios XI server:
[root@lussvpnagiosxi00 libexec]# /usr/local/nagios/libexec/check_nrpe -H uusrcpmwik00
NRPE v2.15
Output from Remote Server:
[root@uusrcpmwik00 etc]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@uusrcpmwik00 etc]# /usr/local/nagios/libexec/check_nrpe -H 10.10.83.90 (Nagios XI server)
connect to address 10.10.83.90 port 5666: No route to host
connect to host 10.10.83.90 port 5666: No route to host
[root@uusrcpmwik00 etc]# traceroute -p 5666 10.10.83.90
traceroute to 10.10.83.90 (10.10.83.90), 30 hops max, 60 byte packets
1 10.10.82.12 (10.10.82.12) 0.371 ms 0.535 ms 0.721 ms
2 LUSSVPNAGIOSXI00 (10.10.83.90) 0.359 ms !X 0.343 ms !X 0.333 ms !X
[root@uusrcpmwik00 etc]# traceroute -p 5666 127.0.0.1
traceroute to 127.0.0.1 (127.0.0.1), 30 hops max, 60 byte packets
1 localhost (127.0.0.1) 0.038 ms 0.011 ms 0.010 ms
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
tcp 0 0 uusrcpmwik00:nrpe LUSSVPNAGIOSXI00:41976 TIME_WAIT
tcp 0 0 *:nrpe *:* LISTEN