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