lmiltchev wrote:Run the following commands and show us the output:
On the client (remote box):
Code: Select all
ps axuw | grep nrpe
netstat -at | grep nrpe
service xinetd status
iptables -nL | grep 5666
grep only_from /etc/xinetd.d/nrpe
On the Nagios XI server:
Code: Select all
ip addr | grep global | grep -m 1 'inet' | awk '/inet[^6]/{print substr($2,0)}' | sed 's|/.*||'
/usr/local/nagios/libexec/check_nrpe -H <client ip>
nmap <client ip> -p 5666
------------------------------------------------
Must be permissions again (I use sudo)
-client part
[lukindi@fihp-rheltst01 ~]$ sudo ps axuw | grep nrpe
lukindi 48232 0.0 0.0 103252 848 pts/0 S+ 17:26 0:00 grep nrpe
[lukindi@fihp-rheltst01 ~]$ sudo netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
[lukindi@fihp-rheltst01 ~]$ service xinetd status
/etc/init.d/xinetd: line 46: /etc/sysconfig/xinetd: Permission denied
xinetd (pid 36004) is running...
[lukindi@fihp-rheltst01 ~]$ iptables -nL | grep 5666
WARNING: Failed to open config file vmware-tools.conf: Permission denied
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
[lukindi@fihp-rheltst01 ~]$ grep only_from /etc/xinetd.d/nrpe
only_from = 127.0.0.1 10.96.30.40 10.102.36.162 10.102.36.163
[lukindi@fihp-rheltst01 ~]$
-XI part
login as: root
[email protected]'s password:
Last login: Thu Apr 7 17:43:05 2016 from 8cg50903k0.res.kcg.global
[root@fikc-nagxiprod01 ~]# ip addr | grep global | grep -m 1 'inet' | awk '/inet[^6]/{print substr($2,0)}' | sed 's|/.*||'
10.x.x.162
[root@fikc-nagxiprod01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.102.36.62
NRPE v2.15
[root@fikc-nagxiprod01 ~]# nmap 10.102.36.62 -p 5666
Starting Nmap 6.47 (
http://nmap.org ) at 2016-04-07 17:47 UTC
Nmap scan report for 10.102.36.62
Host is up (0.00049s latency).
PORT STATE SERVICE
5666/tcp open nrpe
MAC Address: 00:50:56:A5:35:49 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 0.36 seconds
[root@fikc-nagxiprod01 ~]#