Red Hat Bugzilla – Bug 704486
[apache] Warnings about unknown modules logged too frequently
Last modified: 2013-09-02 03:21:06 EDT
Description of problem:
Each time the apache server discovery component runs discovery, it logs a warning about each module it doesn't know the mapping for for each IfModule directive it encounters during config files parsing.
This is too frequent and fills the log with hundreds of warnings if there are more apache instances monitored.
Version-Release number of selected component (if applicable):
3.0.1 as of commit 5e55fb232d2496961477debd9d5eaf94837d69d4
Steps to Reproduce:
1. Have 10+ apache instances running, each using an IfModule directive with a non-standard module that has not been loaded (for testing purposes "blahblah" can be used for example)
2. Run discovery
a large number of warnings in the log about unknown modules
The warning issued at most once per agent/plugin lifetime.
Author: Lukas Krejci <firstname.lastname@example.org>
Date: Fri May 13 12:47:52 2011 +0200
BZ 704486 - Improving the logging behavior of the unknown apache modules.
These are now reported as warnings whenever a configuration is
read/updated or an operation requiring reading the configuration
The periodical discoveries only report the unknown modules once
per plugin lifetime.
When processing IfModule directive, the module is now assumed not loaded
if the the directive uses the module name (as opposed to module source
file) and we can't find the corresponding LoadModule directive.
The warnings are therefore only issued when the IfModule using
the module source file AND we don't know the mapping between module name
and module source file.
verified 10/3/2011 build.
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.