Red Hat Bugzilla – Bug 656449
JON241: [apache] Unable to match the main server vhost during directory and ifmodule discovery
Last modified: 2011-05-23 21:16:54 EDT
Description of problem:
$SUBJECT is causing no Directory and IfModule resources to be discovered under the Main vhost.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have a apache configuration with some <Directory> and <IfModule> sections in the main server configuration (e.g. the default config after installing httpd on fedora for example)
2. have RHQ discover it and inventory it
3. Enable Augeas support in the connection properties of the apache server resource
4. run "discovery -f" on the agent command line
Failed discovery entries in the agent.log, no Directory or IfModule resources discovered under the Main vhost.
No exceptions in the agent.log, Directory and IfModule resource appear under the Main vhost.
This is specific to RHQ 3 (i.e. release-3.0.0 branch). RHQ 4 (master) shouldn't exhibit this issue.
Author: Lukas Krejci <firstname.lastname@example.org>
Date: Tue Nov 23 22:09:27 2010 +0100
a couple of robustness enhancements to the apache plugin:
BZ 656449 - use the matching algorithm between SNMP values and augeas nodes also
when matching the vhost node by resource key, because resource key
in RHQ 3 is based on the SNMP value.
BZ 652247 - Log the SNMP errors only on DEBUG level during discovery because SNMP isn't
required for it to work.
BZ 656476 - Do not fail the discovery if a non-existent directory is used in an Include directive
BZ 652247, BZ 656491 - Do not choke on invalid/unresolvable hostnames in VirtualHost or ServerName directives
Verified on Jon241 build#28
Directory and IfModule resources appear under the Main vhost. No exceptions are found in agent log. Please refer the screenshot.
Bookkeeping - closing bug - fixed in recent release.