On 05/19/2011 02:15 PM, John Holland wrote:
Thanks - I think they're all the same user but the lack of domain connection is causing Windows to freak out.
Can you try to do a psinfo on the JPFF process form the SIGAR command prompt and see which process fields it's able to read? I'm curious if it it's just procCredName or if it's other fields too. If it's just the cred name, we might be able to make the process discovery code more lenient in the RHQ plugin container, since I don't think that field is even needed by most (any?) plugin discovery components.
I swiched to a non-domain user and ran everything from that user. I am actually seeing it in the rhq-agent log as a JMX server without errors but it is not in the JON Console. In JON I have tried manually adding it as a Java 5 JMX server but it says it is DOWN. I am not sure what to give it as a password for JMX or if I can tell it it doesn't need one.
I think leaving the password unset/null should be fine if there's no authentication required. Keep playing with the connection property values and see if you can get it to go green. I think it should work.
Thanks, John On 5/19/2011 1:36 PM, Ian Springer wrote:
I'm guessing the JPFF process is running as a different user than the JON Agent process, and so Windows is preventing the Agent process from accessing the process info for the JPFF process.
If you want to manually run SIGAR process commands outside of RHQ, you can start up the SIGAR command prompt:
cd rhq-agent/lib java -jar sigar.jar
help
Since autodiscovery is not working, you could try manually adding the JPFF JVM to inventory instead. In the GUI, go to the platform Resource for the box where the JPFF process is running, and go to its Inventory>Overview tab. Click the Manual Add below the Child Resources table, and choose to manually add a JVM resource. Enter the JMX remoting connection settings when prompted for them. For docs on manual add, see http://www.rhq-project.org/display/RHQ/Inventory#Inventory-Manualdiscovery.
On 05/19/2011 01:20 PM, John Holland wrote:
Hi, I got back to looking at this. I am doing this on Windows by the way.
I turned on debug in the rhq agent and ran discover with the jppf driver and node (two processes that are required) running. I have JON, rhq-agent and the JPPF processes running on localhost with their ports set to not conflict. In the log file the following appears (actually over and over):
2011-05-19 13:09:58,330 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.ProcessInfo)- Unexpected error occurred while looking up info for [java.exe] process with pid [7672] - call to getProcCredName failed. Did the process die? Cause: org.hyperic.sigar.SigarException: The trust relationship between this workstation and the primary domain failed.
PID 7672 is the Java process that is one of the JPPF processes. In addtion in the rhq-agent console after running discovery -v I see the following:
JMX.JMX Server: Starting discovery... JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[6812], name=[C:\Program FIles\Java\jdk1.6.0_25\jre\bin\java.exe], ppid=[7824]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[7672], name=[C:\Program FIles\Java\jdk1.6.0_25\bin\java.exe], ppid=[4104]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[7824], name=[C:\Program FIles\Java\jdk1.6.0_25\jre\bin\java.exe], ppid=[5392]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[4172], name=[C:\Program Files\Java\jdk1.6.0_25\bin\java.exe], ppid=[5208]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[5392], name=[C:\Program FIles\Java\jdk1.6.0_25\bin\java.exe], ppid=[6680]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[4292], name=[C:\Program Files\Java\jdk1.6.0_25\bin\java.exe], ppid=[5696]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[2900], name=[C:\Program FIles\Java\jdk1.6.0_25\jre\bin\java.exe], ppid=[7672]] JMX.JMX Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=^java.*], name=[java]] , process=[process: pid=[7032], name=[C:\Program FIles\Java\jdk1.6.0_25\jre\bin\java.exe], ppid=[2900]] JMX.JMX Server: Done.
7672 is the second entry.
I've googled the getProcCredName and the hyperic exception but haven't found anything that I understand.
Any advice from anyone would be appreciated.
Thanks, John Holland On 5/13/2011 1:06 PM, Ian Springer wrote:
Does the RHQ Agent discover a JMX Server Resource corresponding to JPPF java process or is not even discovered? If it's not discovered, check that the PPPF process looks like in the process table. If it looks like "java ...", it should get discovered by the jmx plugin. If not you might need to turn on DEBUG logging on the Agent or connect to it with a JPDA debugger to figure out why it's not getting discovered. Once it is discovered, you'll need to import it into inventory and then you may potentially need to edit some of the Resource's connection properties under its Inventory tab.
On 05/13/2011 09:17 AM, John Holland wrote:
Hello,
I am working on a project that is using JPPF to do some intensive processing. I found that JPPF is a JMX server under the hood and I would like to connect it to JON (or RHQ). I'm not having any luck with this. I followed some instructions to connect Eclipse as a JMX server and had no problems with that. In that case I was using the Java 5 template for a JMX server and editing the URL. The JPPF conf files give properties and default values for JMX and RMI ports and host to connect to but JON does not report that a connection has been made.
If anyone has any experience with this and can give me any clues that would be great.
Thanks, John _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users