[jboss-user] [JBoss Tools] - SNMP monitoring of MBeans (attributes.xml in snmp-adaptor.sar)

Evan Homan do-not-reply at jboss.com
Fri Sep 24 13:16:40 EDT 2010


Evan Homan [http://community.jboss.org/people/ephoman] created the discussion

"SNMP monitoring of MBeans (attributes.xml in snmp-adaptor.sar)"

To view the discussion, visit: http://community.jboss.org/message/563621#563621

--------------------------------------------------------------
I want to monitor some attributes of seveal MBeans that are running on my system:

I have configured my attributes.xml unders snmp-adaptor.sar to include:

<mbean name="jboss.ha:service=HASingletonDeployer">
      <attribute name="MasterNode"    oid=".1.2.3.4.1.22"/>
      <attribute name="PartitionName" oid=".1.2.3.4.1.23"/>
      <attribute name="TargetStopMethodArgument" oid=".1.2.3.4.1.24"/>
      <attribute name="TargetName" oid=".1.2.3.4.1.25"/>
      <attribute name="State" oid=".1.2.3.4.1.26"/>
      <attribute name="StateString" oid=".1.2.3.4.1.27"/>
      <attribute name="ClusterPartition" oid=".1.2.3.4.1.28"/>
</mbean>

But with my MIB browser I can only successfully do a get() on String or Int attributes.  Boolean or objects will return an SNMP error.  So, the adaptor is not even "publishing" the OID for those cases.

For my above list, MasterNode, TargetName, and ClusterPartition fail on SNMP get(), the rest are successful.

*Any workaround for this?*

>From the JMX console for org.jboss.ha.singleton.HASingletonController:

TargetName javax.management.ObjectName
StateString java.lang.String
MasterNode boolean
ClusterPartition org.jboss.ha.framework.server.ClusterPartitionMBean
TargetStartMethod java.lang.String
TargetStartMethodArgument java.lang.String
State int
TargetStopMethodArgument java.lang.String
PartitionName java.lang.String
(among others)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563621#563621]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100924/90ff5597/attachment.html 


More information about the jboss-user mailing list