使用probe监控jboss

   无意中发现一个蛮好的监控jboss的工具,原本是用来监控tomcat的,但也能监控jboss。
    监控Tomcat无需特别的配置,基本上拷到WebApps目录即可使用。
    这个能执行长期监控,最近正在想找个东西监控Jboss Session,probe还能查看到session的详细内容。
    jboss有专门的版本: 下载最新版本,部署成功后:

直接摘取官方配置如下:
Intalling on JBossSecurity configuration

Create two files in "JBOSS_SERVER_HOME/conf/props" directory:

probe-users.properties: list of users in the format of "username=password", example:

admin=t0psercret

probe-roles.properties: list of roles in the format of "username=role1[,role2...], example:

admin=manager

Edit "JBOSS_SERVER_HOME/conf/login-config.xml" and add the following code to the <policy> element:

<application-policy name = "probe">
<authentication>
   <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
    <module-option name="usersProperties">props/probe-users.properties</module-option>
    <module-option name="rolesProperties">props/probe-roles.properties</module-option>
   </login-module>
</authentication>
</application-policy>Privileged context

JBoss needs to allow Lambda Probe to be deployed into a privileged context. To do that add the following attribute to JBOSS_SERVER_HOME/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml:

<attribute name="AllowSelfPrivilegedWebApps">true</attribute>Deploying Lambda Probe WAR

Copy probe.war to JBOSS_SERVER_HOME/deploy/ and restart JBoss. That is it.

 

转自:http://hi.baidu.com/higkoo/item/0c07180d6d7da47dbfe97ed8

 

 

 LambdaProbe 1.7b 的中文语言包下载: messages_zh_CN.zip 9KB。使用方法是: 把下载的文件解压缩, 将其中的 messages_zh_CN.properties 放到 $TOMCAT_HOME$\webapps\probe\WEB-INF 下即可。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值