Description of problem: According to the docs, the ServerName directive value has the following format: [scheme://]fully-qualified-domain-name[:port] However if the scheme or port part is specified in the name, the plugin fails to discover the corresponding resource. If such ServerName is specified in the main server config, the plugin fails to even discover the server. If such ServerName is present in the vhost, that vhost is not discovered. Version-Release number of selected component (if applicable): 3.0.0 How reproducible: always Steps to Reproduce: 1. Define ServerName http://localhost:80/ in the main httpd.conf 2. Let RHQ run the discovery 3. No apache gets discovered 4. Repeat 1. - 3. with the ServerName defined in some vhost 5. The corresponding vhost doesn't get discovered Actual results: $STEPS Expected results: The discovery should run fine in all the tested cases Additional info:
Verified on the latest build of rhq-server-4.0.0-SNAPSHOT. The auto discovery works as expected for all the steps mentioned in previous comment. Marking this bug as verified.
Verified this against jon-server-2.4.1-SNAPSHOT build# 24. Defined ServerName directive http://localhost:80/ in the main httpd.conf and in a vhost. Apache gets discovered displaying the ServerName in main and vhost as defined.
Bookkeeping - closing bug - fixed in recent release.