Red Hat Bugzilla – Bug 642622
[apache] ServerName with a port spec confuses the discovery
Last modified: 2011-05-23 21:11:41 EDT
Description of problem:
According to the docs, the ServerName directive value has the following format:
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):
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
The discovery should run fine in all the tested cases
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.