Le 13/03/2014 12:40, Heiko W.Rupp a écrit :
Attila,
Am 13.03.2014 um 11:17 schrieb Attila Heidrich attila.heidrich@gmail.com:
I just try to check if a port is available, or not, but the check always fails, while using telnet, I can open the same connection (tcp port 5001).
What plugin are you using?
I guess Atilla uses PortService from NetServices plugin, right Attila?
I have tried with external IP address of the host, and also with localhost. Both works with telnet, but unavailable from RHQ.
It is not a standard port, and there's a propiertary service behind the port - but I just need to check if it's open, or not.
I wonder if the sender IP for your telnet experiments is different than for the agent, so that some firewall rules that check for sender + receiver (IP,port) may match for telnet, but not for rhq
Do you have a chance to trace both connection attempts (agent, telnet) with tcpdump and see how they differ?
Heiko
If you're on RHQ4.9 you should see warnings in the agent logs.
The port will be reported available if a TCP connection can be established from the platform under which the PortService shows up
If you telnet from your machine it does mean anything.
Thomas