Bug 1330585

Summary: The RtFilter load vHostMappingFile but it's content is not processed and used
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: Monitoring, CallTimeAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1330581    

Description bkramer 2016-04-26 14:05:15 UTC
Description of problem:
The RtFilter load vHostMappingFile but it's content is not processed and used.


Version-Release number of selected component (if applicable):
RHQ 4.12

How reproducible:
Always

Steps to Reproduce:
1. Install and configure RtFilter in JBoss EAP 6 standalone server as per [1].

2. Then Add following in web application web.xml :

<filter>
    <filter-name>RhqRtFilter</filter-name>
    <filter-class>org.rhq.helpers.rtfilter.filter.RtFilter</filter-class>
    <init-param>
        <param-name>vHostMappingFile</param-name>
        <param-value>vhost-mappings.properties</param-value>
    </init-param> 
</filter>

3. Create vhost-mappings.properties file (in jboss.server.config.dir) with below configuration :

jon.localhost.com = testvirtualserver
test1.example.com = testvirtualserver

4. Restart the JBoss EAP 6 server to reload the new changes.


Actual results:

The RtFilter loads vHostMappingFile but it does not read content of the vhost-mappings.properties file and call time metrics will be logged in the predefined file name.


Expected results:

The RtFilter loads vHostMappingFile, reads it and processes it so that call time metrics are captured in the correct files as defined in the vhost-mappings.properties file [2].


Additional info:


[1] https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Users_Guide/jboss-rt-seven.html
[2] Table 21.1. Parameters Available for User-Defined <filter> Settings in [1] - vHostMappingFile parameter