我的webapp在tomcat 6下運行,它使用jM的activeMQ 5.5 lib。我正在創建一個插件讓hyperic 4.5通過jmx監視代理,但hyperic無法自動發現它。它也無法將其加載到管理插件管理器中(在我使用的hyperic版本中不支持有效的mq 5.5),但它只是一個小版本。)hyperic jmx monitoring:插件在HQ中不存在
日誌中有錯誤,沒有給出給我提示。 嘗試啓動idmlBroker4.xml的插件傳輸,但插件不HQ
存在PDT錯誤[全球同步插件(插件通過部署啓動)1] [org.hyperic.hq.appdef.server.session.AgentManagerImpl @ 1552]嘗試啓動Broker4.xml的插件傳輸,但插件在HQ中不存在 PDT INFO [scheduler-2] [[email protected]]取消部署插件:/ home/hyperic /server-4.6.6/hq-engine/hq-server/webapps/ROOT/WEB-INF/hq-plugins/Broker4.xml
我的MBean和插件是:
MBean:org.apache.activemq.broker.jmx.QueueView Name:org.apache.activemq:BrokerName = IDMLBroker,Type = Queue,Destination = idml1.com.cequint.idml.report.persistence 0屬性: CacheEnabled =真(R) ... 13.屬性:PrioritizedMessages =假(R) 14.屬性:EnqueueCount = 2877(R) 15.屬性:DequeueCount = 2877(R) 16.屬性:DispatchCount = 2877(R) ... 操作:空隙吹掃[] 操作:布爾removeMessage [java.lang.String中] ....
<plugin>
<service name="Broker"
server="Sun JVM" version="1.5">
<property name="OBJECT_NAME"
value="org.apache.activemq:BrokerName=Broker,Type=Queue,Destination=host1.com.server.report"/>
<plugin type="autoinventory"/>
<plugin type="measurement"
class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/>
<plugin type="control"
class="org.hyperic.hq.product.jmx.MxControlPlugin"/>
<!-- reset is an MBean operation, set* are attribute setters -->
<actions include="cursorSize"/>
<config>
<option name="jmx.url" description="JMX URL to MBeanServer" default="service:jmx:rmi:///jndi/rmi://localhost:8186/jmxrmi"/>
<option name="jmx.username" description="JMX username" optional="false" default="user"/>
<option name="jmx.password" description="JMX password" optional="false" default="password" type="secret"/>
</config>
<properties>
<property name="EnqueueCount" description="Cache Size"/>
<property name="DequeueCount" description="TrainThreshold"/>
</properties>
<filter name="template"
value="${OBJECT_NAME}:${alias}"/>
<metric name="EnqueueCount"
template="${OBJECT_NAME}:EnqueueCount"
indicator="true"/>
<metric name="DequeueCount"
alias="DequeueCount"
collectionType="trendsup"
indicator="true"/>