Ticket #223 (closed 需求: 已处理)

Opened 12 years ago

Last modified 12 years ago

bbs应用监控插件

Reported by: dingjianyong Owned by: liubixiao
Priority: 最高级(1) Milestone:
Component: 核心模块 Version:
Keywords: Cc:
Due Date: 31/12/2013

Description


Attachments

pcwebmonitor.xml Download (5.3 KB) - added by liubixiao 12 years ago.
组件配置

Change History

comment:1 Changed 12 years ago by liubixiao

各网论坛后台监控链接:域名+/51946e4ab7f9a703b08771fc88889c2d/detect
【获取监控加密链接方式】
MD5源密码字符串:pc_bbs_!@#$%
可访问各网后台:域名+/util/md5.jsp?code=pc_bbs_!@#$% 得到md5密码

【更换密码需要配置的注意事项】
如需更换密码串时,需同时更新web.xml中的两处;
以及pcwebmonitor.xml中的一处

【论坛监控插件的配置】
首先配置项目的web.xml文件,值得注意的是JwebapListener监听器需要配置在其他监听之前,否则无法启动监控模块。

        <context-param>
		<param-name>jwebap-config</param-name>
		<param-value>/WEB-INF/pcwebmonitor.xml</param-value>
	</context-param>
	<listener>	
		<listener-class>org.jwebap.startup.JwebapListener</listener-class>	
	</listener>
	<filter>
		<filter-name>PageDetectFilter</filter-name>
		<filter-class>org.jwebap.plugin.tracer.http.DetectFilter</filter-class>
		<init-param>
			<param-name>excludeUrls</param-name>
			<param-value>/[MD5密码]/detect;/[MD5密码]/detect/*;*.js;*.jpg;*.htm;*.html;*.gif;*.png;*.css;*.swf;*.ico</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>PageDetectFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<servlet>
		<servlet-name>detect</servlet-name>
		<servlet-class>org.jwebap.ui.controler.JwebapServlet</servlet-class>	
	</servlet>
	<servlet-mapping>
		<servlet-name>detect</servlet-name>
		<url-pattern>/[MD5密码]/detect/*</url-pattern>
	</servlet-mapping>

其次是配置pcwebmonitor.xml中的相应参数,如下:
1、MethodComponent组件配置项中的<name>detect-clazzs</name>,设置为需要监控的java类包路劲即可,其他参数可默认;
2、JdbcComponent组件配置项中的<name>driver-clazzs</name>,设置为项目中使用的数据源管理类,其他参数可默认;
3、设置monitor-path,path0、path15为日志输出路径,rootPath为监控后台配置的根路径,可默认。

Version 8, edited 12 years ago by liubixiao (previous) (next) (diff)

Changed 12 years ago by liubixiao

组件配置

comment:2 Changed 12 years ago by dingjianyong

  • Status changed from new to closed
  • Resolution set to 已处理
  • Summary changed from bbs应用监测插件 to bbs应用监控插件
Note: See TracTickets for help on using tickets.