edit: Moved the questions/issues to the top. Bolded those items that are new since the last edit.
- Apache Web Server and PostgreSQL can only be detected when they are run via the console window or when their services are run by the account that I'm logged in as.
- All 4 of the above software packages are marked as unavailable (red exclamation) in the rhq-server interface.
- The documentation states more than once that the bundled service wrapper only works with 32-bit Java, yet my rhq-server is running via a Windows service without visible problems; that is, I can log in to http://localhost:7080 and get to the console, as well as see the agent I have registered and its discovered resources. Is there some other functionality that breaks that isn't readily apparent?
- PostgreSQL installed with all default values can be discovered. PostgreSQL installed with modified values cannot be discovered. What?
Tomcat and JBoss can only be discovered when run via command line. Under no circumstance can they be discovered when run as windows services. There is an outstanding bug against this.
I’m trying to set up a local RHQ monitoring server on a self-contained test bed for my web server. The server hosts:
- 3 instances of Apache Tomcat 7.x
- 1 instance of JBoss EAP 6.1
- 1 instance of AWS
- 1 instance of PostgreSQL
I kept the JBoss service turned off to avoid port issues with RHQ-server (it would appear it has a hardcoded check for port 9999 use on install?)
After unzipping the rhq bundle and also the jboss native bundle for a properly working service, I installed the RHQ server (java 1.7.25 and postgres 9.2.x backing), storage, and agent. I installed with the flag that does not allow auto-start of the agent so I could configure the first run. Here is the console output from the initial agent run:
C:\rhq-agent\bin>rhq-agent.bat -L -u
RHQ 4.9.0 [bb4fa70] (Tue Sep 10 16:05:44 EDT 2013)
Answer the following questions to setup this RHQ Agent instance.
- After each prompt, a default value will appear in square brackets.
If you press the ENTER key without providing any value,
the new preference value will be set to that default value.
- If you wish to rely on the system internal default value and
not define any preference value, enter '!*'.
- If you wish to stop before finishing all the questions but still
retain those preferences you already set, enter '!+'.
- If you wish to cancel before finishing all the questions and revert
all preferences back to their original values, enter '!-'.
- If you need help for a particular preference, enter '!?'.
Agent Name [EA-APP.dhcp.saic.com] : EA-APP
Agent Hostname or IP Address [!*] : 127.0.0.1
Agent Port  :
RHQ Server Hostname or IP Address [10.172.42.232] : 127.0.0.1
RHQ Server Port  :
The setup has been completed for the preferences at node [/rhq-agent/default].
After all of that, I ran the command line ‘discovery’ function. It could only find 4 resources:
- - EA-APP (windows)
- - Cron (cron)
- - RHQ Agent (RHQAgent)
- - Samba Server (Samba)
Note that not only are none of my software pieces not showing up, not even the rhq-server is showing up. The postgres isn't showing up that the rhq-server needed just to install in the first place. It's quite vexing.
- If I run rhq-server via the console command, the agent can see it. If I run the rhq-server via windows service the agent cannot see it. I know the server is running because I can muck around in a browser via localhost:7080
- If I run a basic tomcat via console, the agent can see it. If I run any of my tomcats via service, the agent cannot see them. This is either a function of running as a service, or perhaps running by using CATALINA_HOME/BASE rather than the out-of-the-box configuration.
- Given the above two bullets, perhaps rhq-agent needs additional configuration to interact with software running via windows services?