Adding SNMP

4 views
Skip to first unread message

Ilya Korolev

unread,
Aug 8, 2011, 4:58:30 AM8/8/11
to cipang...@googlegroups.com
Hello

I would like to use SNMP to monitor my sip servlet. Could you please suggest the best way to do it? As I can see, cipango use snmp4j with jmx mapping. Should I use JMX or snmp directly? How I can get access to cipango's SnmpAgent from my servlet? Is there any example to use snmp inside cipango sip servlet?

Nicolas Trangosi

unread,
Aug 9, 2011, 10:35:01 AM8/9/11
to cipang...@googlegroups.com
Hello,
A way to use SNMP to monitor a SIP servlet is to:
  • inject the SNMP agent in the servlet context with jetty-web.xml
  • on servlet init,
    •  expose via JMX the parameters to monitor
    • create a new MIB wich will read / write parameters from JMX
    • get SNMP agent from servlet context and the MIB
  • on servlet destroy
    • remote the MIB from the SNMP agent
    • unregister the object names.
You could find a sample in the join file: If you run a Cipango with cipango-snmp.xml and this application, the OID 1.3.6.1.4.26588.2.10.1.0 is browsable (the value will increment on every SNMP get). Work is done in the class org.cipango.test.UasServlet.

Note: You need the last version (revision 743) from the trunk to do this.

Regards,
Nicolas
load-sipapp-SNMP.zip

Ilya Korolev

unread,
Aug 10, 2011, 4:42:19 AM8/10/11
to cipang...@googlegroups.com
Hello,  Nicolas
 
Thanks a lot! I'll try it right now 
09.08.2011, 18:35, "Nicolas Trangosi" <nicolas....@nexcom.fr>:
--
You received this message because you are subscribed to the Google Groups "cipango-users" group.
To post to this group, send email to cipang...@googlegroups.com.
To unsubscribe from this group, send email to cipango-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cipango-users?hl=en.
Reply all
Reply to author
Forward
0 new messages