Re: check_nrpe : No route to host
Posted: Fri Jun 16, 2017 2:59 pm
So I ran the following command on my RHEL remote host sever and saw the following.
[root@huey xinetd.d]# firewalld-cmd --zone=public --list-all
-bash: firewalld-cmd: command not found
[root@huey xinetd.d]# firewall-cmd --zone=public --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: dhcpv6-client ssh
ports: 2301/tcp 80/tcp 9102/tcp 10033/tcp 10032/tcp 10023/tcp 10022/tcp 10030/tcp 2381/tcp 10031/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
I don't see port 5666/tcp listed there however when I run the command:
[root@huey xinetd.d]# firewall-cmd --zone=public --add-port=5666/tcp
success
[root@huey xinetd.d]#
Now I see this here
[root@huey xinetd.d]# firewall-cmd --zone=public --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: dhcpv6-client ssh
ports: 5666/tcp 2301/tcp 80/tcp 9102/tcp 10033/tcp 10032/tcp 10030/tcp 10022/tcp 10023/tcp 2381/tcp 10031/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
From the Nag server I am now getting this. What does this mean?
[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42
CHECK_NRPE: Error - Could not connect to 192.168.1.42: Connection reset by peer
This is a different error message.
[root@huey xinetd.d]# firewalld-cmd --zone=public --list-all
-bash: firewalld-cmd: command not found
[root@huey xinetd.d]# firewall-cmd --zone=public --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: dhcpv6-client ssh
ports: 2301/tcp 80/tcp 9102/tcp 10033/tcp 10032/tcp 10023/tcp 10022/tcp 10030/tcp 2381/tcp 10031/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
I don't see port 5666/tcp listed there however when I run the command:
[root@huey xinetd.d]# firewall-cmd --zone=public --add-port=5666/tcp
success
[root@huey xinetd.d]#
Now I see this here
[root@huey xinetd.d]# firewall-cmd --zone=public --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: dhcpv6-client ssh
ports: 5666/tcp 2301/tcp 80/tcp 9102/tcp 10033/tcp 10032/tcp 10030/tcp 10022/tcp 10023/tcp 2381/tcp 10031/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
From the Nag server I am now getting this. What does this mean?
[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42
CHECK_NRPE: Error - Could not connect to 192.168.1.42: Connection reset by peer
This is a different error message.