Hi!
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).
The agent runs on a host machine, the port to be tested is redirected inside a VirtualBox VM.
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.
Regards,
Attila
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 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
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
Am 13.03.2014 um 12:08 schrieb Thomas Segismont tsegismo@redhat.com:
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.
Telnet <ip> <port> is for me the generic way to check if a port is available on a remote - this does for me not tell anything about the service itself. There is the telnet virtual server (or such) "standard" that services like smtp, http, ... all adhere to and which do not mean you can log into any of those to get a user shell. This is what I understood here
Heiko
Le 13/03/2014 15:04, Heiko W.Rupp a écrit :
Am 13.03.2014 um 12:08 schrieb Thomas Segismont tsegismo@redhat.com:
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.
Telnet <ip> <port> is for me the generic way to check if a port is available on a remote - this does for me not tell anything about the service itself. There is the telnet virtual server (or such) "standard" that services like smtp, http, ... all adhere to and which do not mean you can log into any of those to get a user shell. This is what I understood here
I actually meant that telnet from the platform under which the PortService shows up is what Attila should be trying. If he ran telnet from his box it does not mean anything.
What is portservice for then?
I would like to use stg to check whether a given TCP port on a given host is accessible/open, or not, exactly the way I use telnet, may or may not it mean anything for others :)
No conversation, just to check the "connected" status. If I can do any conversation, I can use some more specific plugin, like SMTP, postgres, mysql, ssh, or whatever else.
Anyway, I have tried to setup several portservices on another agent (same RHQ cluster) too - and none was ever successful there either. There are proprietary, and well known port/services (like http over 8080, or ssh on a non standard port) among them.
A
2014-03-13 15:12 GMT+01:00 Thomas Segismont tsegismo@redhat.com:
Le 13/03/2014 15:04, Heiko W.Rupp a écrit :
Am 13.03.2014 um 12:08 schrieb Thomas Segismont tsegismo@redhat.com:
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.
Telnet <ip> <port> is for me the generic way to check if a port is available on a remote - this does for me not tell anything about the service itself. There is the telnet virtual server (or such) "standard" that services like smtp, http, ... all adhere to and which do not mean you can log into any of those to get a user shell. This is what I understood here
I actually meant that telnet from the platform under which the PortService shows up is what Attila should be trying. If he ran telnet from his box it does not mean anything.
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Thanks Thomas, I really use the built-in PortService.
There's nothing to do with the firewall, or similar, I run telnet on the very same machine where the agent runs.
I have looked at the logs, but it says nothing interesting I guess:
2014-03-13 09:55:49,267 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Starting: Thu Mar 13 09:55:49 UTC 2014 2014-03-13 09:55:49,286 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Ended : Thu Mar 13 09:55:49 UTC 2014 : Scan [startTime=1394704549267, endTime=1394704549286, runtime=19, isFull=false, isForced=false, numResources=96, numGetAvailabilityCalls=8, numScheduledRandomly=0, numPushedByInterval=7, numAvailabilityChanges=0, numDeferToParent=0] *2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Executing runtime discovery scan rooted at [Resource[id=15681, uuid=b4bf9904-32ca-43f9-872e-c303d2ce54fd, type={NetworkServices}PortService, key=Port 127.0.0.1:5001 http://127.0.0.1:5001, name=Port 127.0.0.1:5001 http://127.0.0.1:5001, parent=front-no]]...* 2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Scanned platform and 0 server(s) and discovered 0 new descendant Resource(s). 2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Sending [runtime] inventory report to Server... 2014-03-13 09:55:54,348 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Syncing local inventory with Server inventory...
The PortService is reported Down ever since I have created.
# telnet 127.0.0.1 5001 Trying 127.0.0.1... *Connected* to 127.0.0.1. Escape character is '^]'.
2014-03-13 13:08 GMT+01:00 Thomas Segismont tsegismo@redhat.com:
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
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Le 13/03/2014 15:31, Attila Heidrich a écrit :
Thanks Thomas, I really use the built-in PortService.
Ok
There's nothing to do with the firewall, or similar, I run telnet on the very same machine where the agent runs.
Good
I have looked at the logs, but it says nothing interesting I guess:
2014-03-13 09:55:49,267 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Starting: Thu Mar 13 09:55:49 UTC 2014 2014-03-13 09:55:49,286 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Ended : Thu Mar 13 09:55:49 UTC 2014 : Scan [startTime=1394704549267, endTime=1394704549286, runtime=19, isFull=false, isForced=false, numResources=96, numGetAvailabilityCalls=8, numScheduledRandomly=0, numPushedByInterval=7, numAvailabilityChanges=0, numDeferToParent=0] *2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Executing runtime discovery scan rooted at [Resource[id=15681, uuid=b4bf9904-32ca-43f9-872e-c303d2ce54fd, type={NetworkServices}PortService, key=Port 127.0.0.1:5001 http://127.0.0.1:5001, name=Port 127.0.0.1:5001 http://127.0.0.1:5001, parent=front-no]]...* 2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Scanned platform and 0 server(s) and discovered 0 new descendant Resource(s). 2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Sending [runtime] inventory report to Server... 2014-03-13 09:55:54,348 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Syncing local inventory with Server inventory...
The PortService is reported Down ever since I have created.
That's weird. No "Unable to reach remote port" message?
# telnet 127.0.0.1 5001 Trying 127.0.0.1... *Connected* to 127.0.0.1. Escape character is '^]'.
Is there any warning icon in the resource detail view? Any message when you click on it?
rhq-users@lists.stg.fedorahosted.org