lmiltchev wrote:Run the following commands and show the output:
On the client (remote machine):
Code: Select all
find / -name nrpe
service xinetd restart
service xinetd status
ifconfig
grep only_from /etc/xinetd.d/nrpe
netstat -ano | grep 5666
On the Nagios XI server:
Code: Select all
ifconfig
nmap <client ip> -p 5666
/usr/local/nagios/libexec/check_nrpe -H <client ip>
Note: Try using both, the FQDN and IP address.
Hi..
Please find the output on the client machine:
[root@uusrcpmwik00 etc]# find / -name nrpe
/tmp/nrpe-2.15/package/solaris/pkg/nrpe
/tmp/nrpe-2.15/src/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package/solaris/pkg/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe
/tmp/nrpe-2.14/package/solaris/pkg/nrpe
/tmp/nrpe-2.14/src/nrpe
/usr/local/nagios/bin/nrpe
/usr/local/nagios/etc/nrpe
/etc/xinetd.d/nrpe
[root@uusrcpmwik00 etc]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@uusrcpmwik00 etc]# service xinetd status
xinetd (pid 31054) is running...
[root@uusrcpmwik00 etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:B8:50:72
inet addr:10.10.82.38 Bcast:10.10.82.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feb8:5072/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4343915 errors:0 dropped:0 overruns:0 frame:0
TX packets:1055261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:647983174 (617.9 MiB) TX bytes:112364838 (107.1 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:115557 errors:0 dropped:0 overruns:0 frame:0
TX packets:115557 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10406333 (9.9 MiB) TX bytes:10406333 (9.9 MiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:29:D0:0C
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@uusrcpmwik00 etc]# grep only_from /etc/xinetd.d/nrpe
only_from = 10.10.83.90
[root@uusrcpmwik00 etc]# netstat -ano | grep 5666
Output on Nagios Server:
[root@lussvpnagiosxi00 libexec]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:B8:4B:43
inet addr:10.10.83.90 Bcast:10.10.83.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feb8:4b43/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11140745 errors:0 dropped:0 overruns:0 frame:0
TX packets:11490039 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3255614493 (3.0 GiB) TX bytes:2481963047 (2.3 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:13431662 errors:0 dropped:0 overruns:0 frame:0
TX packets:13431662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5188319227 (4.8 GiB) TX bytes:5188319227 (4.8 GiB)
[root@lussvpnagiosxi00 libexec]# nmap 10.10.82.38 -p 5666
Starting Nmap 5.51 (
http://nmap.org ) at 2015-08-04 12:20 CDT
Nmap scan report for 10.10.82.38
Host is up (0.00036s latency).
PORT STATE SERVICE
5666/tcp closed nrpe
Nmap done: 1 IP address (1 host up) scanned in 13.11 seconds
[root@lussvpnagiosxi00 libexec]# /usr/local/nagios/libexec/check_nrpe -H 10.10.82.38
connect to address 10.10.82.38 port 5666: Connection refused
connect to host 10.10.82.38 port 5666: Connection refused[root@lussvpnagiosxi00 lib^Cec]# /usr/local/nagios/libexec/check_nrpe -H 10.10.82.38
[root@lussvpnagiosxi00 libexec]# /usr/local/nagios/libexec/check_nrpe -H uusrcpmwik00
connect to address 10.10.82.38 port 5666: Connection refused
connect to host uusrcpmwik00 port 5666: Connection refused[root@lussvpnagiosxi00 libexec]#