-
1. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
dimitris Dec 26, 2005 2:43 PM (in response to karanuk)When you post your configuration/descriptors in the forums, wrap them using:
[ code ]
[ /code ]
(without the spaces) -
2. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
karanuk Dec 27, 2005 12:06 AM (in response to karanuk)The conf xml tags seems to have got dropped.The descriptors r as bellow.
jboss-service.xml ------------------------------------------------------------------------- <service> <!-- The SNMP adaptor MBean --> <mbean code="org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService" name="jboss.jmx:name=SnmpAgent,service=snmp,type=adaptor"> <attribute name="RequestHandlerClassName">org.jboss.jmx.adaptor.snmp.agent.RequestHandlerSupport</attribute> <attribute name="TrapFactoryClassName">org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport</attribute> <attribute name="NotificationMapResName">/notifications.xml</attribute> <attribute name="ManagersResName">/managers.xml</attribute> <attribute name="HeartBeatPeriod">0</attribute> <attribute name="Port">1161</attribute> <attribute name="DynamicSubscriptions">false</attribute> <attribute name="SubscriptionList"> <subscription-list> <mbean name="jboss.jmx:name=HelloWorld,service=test,type=testBroadcaster"/> </subscription-list> </attribute> </mbean> </service> -------------------------------------------------------------------------- notifications.xml -------------------------------------------------------------------------- <notification-map-list> <mapping> <notification-type>com.acme.jmx-smnp.test</notification-type> <generic>0</generic> <specific>0</specific> <enterprise> .1.3.6.1.4.1.2162.500.1.1</enterprise> <var-bind-list wrapper-class="org.jboss.jmx.adaptor.snmp.agent.NotificationWrapperSupport"> <var-bind> <tag>n:message</tag> <oid>.1.3.6.1.4.1.2162.500.1.1.2</oid> </var-bind> </var-bind-list> </mapping> </notification-map-list> -------------------------------------------------------------------------- managers.xml -------------------------------------------------------------------------- <manager-list> <manager> <address>172.19.22.250</address> <port>162</port> <local-address></local-address> <local-port></local-port> <version>1</version> </manager> </manager-list> --------------------------------------------------------------------------
looking forward for your thoughts,
KaranUK -
3. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
karanuk Dec 27, 2005 2:19 AM (in response to karanuk)Hi,
Was just debugging and found that the generic and specific tags in the notifications.xml are overriding the enterprise OID and so the coldStart trap's being sent.notification-map-list> <mapping> <notification-type>com.acme.jmx-smnp.test</notification-type> <generic>0</generic> <specific>0</specific> <enterprise> .1.3.6.1.4.1.2162.500.1.1</enterprise> <!--etc--> </mapping> </notification-map-list>
The only document describing notifications.xml seems to be http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSNMPAdapterNotifications and as such does not detail the role of generic and specific tags.If someone knows the set of values that can be passed to these tags and their significance,plz do let us know.
looking forward for ur reply,
karanUk. -
4. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
dimitris Dec 27, 2005 4:00 AM (in response to karanuk)Generic needs to be set to "6", meaning "enterpriseSpecific". "0" is essentially "coldStart".
see
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094aa5.shtml -
5. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
karanuk Jan 6, 2006 2:09 AM (in response to karanuk)Thanks Dimitris :)
That resolved the case.
regards,
nKaranUk -
6. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
dimitris Jan 6, 2006 5:04 AM (in response to karanuk)It'd be nice if you can post, for the benefit of all, a sort description of how you are using the snmp adaptor with nagios. Thanks.
-
7. Re: Jboss->snmp-adaptor->snmptrapd->snmptt configuration iss
karanuk Jan 9, 2006 1:04 AM (in response to karanuk)With snmp-adaptor.sar set up to send traps,Nagios could be configured as per details in links below.
http://www.nagios.org/faqs/viewfaq.php?faq_id=29
http://www.samag.com/documents/s=9559/sam0503g/
karanuk