Beruflich Dokumente
Kultur Dokumente
8/30/13 10:51 AM
Overview
The jboss-as-7 plugin handles discovering and managing JBoss AS 7.x and JBoss EAP/SOA-P/etc. 6.x.
JBoss AS 7.x Servers can always be auto-discovered, but in order to collect metrics and execute operations, they must have a
management user configured.
Page 1 of 5
8/30/13 10:51 AM
The filter jar is packaged as AS7 module. To configure the module in your AS7 instance, first install the jar and the associated
module.xml file:
cd#/tmp
wget#http://yourrhqserver:7080/downloads/connectors/rhq:rtfilter:module.zip
cd#<JBOSS_HOME>/modules
unzip#/tmp/rhq:rtfilter:module.zip
Then globally deploy the module by adding the following element as a child of the <subsystem xmlns="urn:jboss:domain:ee:1.0">
element in standalone.xml or domain.xml:
<global:modules>
####<module#name="org.rhq.helpers.rhq:rtfilter"#slot="main"/>
</global:modules>
This should now look like this:
<subsystem#xmlns="urn:jboss:domain:ee:1.0">
##<global:modules>
####<module#name="org.rhq.helpers.rhq:rtfilter"#slot="main"/>
##</global:modules>
</subsystem>
In case of a later server version, this may also be urn:jboss:domain:ee:1.1 as in
<subsystem#xmlns="urn:jboss:domain:ee:1.1">
###<spec*descriptor*property*replacement>false</spec*descriptor*property*replacement>
###<jboss*descriptor*property*replacement>true</jboss*descriptor*property*replacement>
#
###<global*modules>
######<module#name="org.rhq.helpers.rhq:rtfilter"#slot="main"/>
####</global*modules>
</subsystem>
Also you may need to add an extension tag as in
<extension#module="org.rhq.helpers.rhq:rtfilter:subsystem"/>
https://docs.jboss.org/author/display/RHQ/JBoss+AS+7.x+Product+Configuration
Page 2 of 5
8/30/13 10:51 AM
<subsystem#xmlns="urn:rhq:rtfilter:1.0">
####<!::#Optional#parameters.#Note#these#typically#remain#commented.#Also,
#########some#of#these#values#may#be#configurable#on#the#relevant#"Web#Runtime"
#########resource,#via#the#RHQ#GUI.
#
#######<init:param>
###########<param:name>chopQueryString</param:name>
###########<param:value>true</param:value>
#######</init:param>
#######<init:param>
###########<param:name>logDirectory</param:name>
##########<param:value>/tmp</param:value>
#######</init:param>
#######<init:param>
###########<param:name>logFilePrefix</param:name>
###########<param:value>localhost_7080_</param:value>
#######</init:param>
#######<init:param>
###########<param:name>dontLogRegEx</param:name>
###########<param:value></param:value>
#######</init:param>
#######<init:param>
##########<param:name>matchOnUriOnly</param:name>
##########<param:value>true</param:value>
#######</init:param>
#######<init:param>
###########<param:name>timeBetweenFlushesInSec</param:name>
###########<param:value>73</param:value>
#######</init:param>
#######<init:param>
###########<param:name>flushAfterLines</param:name>
###########<param:value>13</param:value>
#######</init:param>
#######<init:param>
###########<param:name>maxLogFileSize</param:name>
###########<param:value>5242880</param:value>
#######</init:param>
::>
</subsystem>
Page 3 of 5
8/30/13 10:51 AM
##<!::######################################################################::>
##<!::###timeBetweenFlushesInSec############################################::>
##<!::####################Seconds#between#auto#flushes#of#the#logfile.######::>
##<!::###maxLogFileSize###The#maximum#allowed#size,#in#bytes,#of#the########::>
##<!::####################logfiles#if#a#logfile#exceeds#this#limit,#the#####::>
##<!::####################filter#will#truncate#it;#the#default#value#is#####::>
##<!::####################5242880#(5#MB)####################################::>
##<!::###vHostMappingFile#Name#of#vhost#mapping#file.#This#properties#file##::>
##<!::####################must#be#in#the#Tomcat#process#classpath.##########::>
##<!::######################################################################::>
#
###<filter>
#######<filter:name>RhqRtFilter</filter:name>
#######<filter:class>org.rhq.helpers.rtfilter.filter.RtFilter</filter:class>
#
<!::#Optional#parameters.#Note#these#typically#remain#commented.#Also,
#####some#of#these#values#may#be#configurable#on#the#relevant#"Web#Runtime"
#####resource,#via#the#RHQ#GUI.
#
#######<init:param>
###########<param:name>chopQueryString</param:name>
###########<param:value>true</param:value>
#######</init:param>
#######<init:param>
###########<param:name>logDirectory</param:name>
##########<param:value>/tmp</param:value>
#######</init:param>
#######<init:param>
###########<param:name>logFilePrefix</param:name>
###########<param:value>localhost_7080_</param:value>
#######</init:param>
#######<init:param>
###########<param:name>dontLogRegEx</param:name>
###########<param:value></param:value>
#######</init:param>
#######<init:param>
##########<param:name>matchOnUriOnly</param:name>
##########<param:value>true</param:value>
#######</init:param>
#######<init:param>
###########<param:name>timeBetweenFlushesInSec</param:name>
###########<param:value>73</param:value>
#######</init:param>
#######<init:param>
###########<param:name>flushAfterLines</param:name>
###########<param:value>13</param:value>
#######</init:param>
#######<init:param>
###########<param:name>maxLogFileSize</param:name>
###########<param:value>5242880</param:value>
#######</init:param>
::>
#
###</filter>
#
##<!::#=====#RHQ#Response#Time#Metric#Filter#Mapping#=====#::>
##<!::#To#limit#to#only#certain#applications#various#filters#can#be#########::>
##<!::#defined.#This#will#perform#RT#metric#collection#for#all##############::>
##<!::#applications.########################################################::>
###<filter:mapping>
#######<filter:name>RhqRtFilter</filter:name>
#######<url:pattern>/*</url:pattern>
###</filter:mapping>
Restart JBoss AS
After installing the filter module and/or filter subsystem, JBoss AS must be restarted to pick up the changes.
https://docs.jboss.org/author/display/RHQ/JBoss+AS+7.x+Product+Configuration
Page 4 of 5
https://docs.jboss.org/author/display/RHQ/JBoss+AS+7.x+Product+Configuration
8/30/13 10:51 AM
Page 5 of 5