Metaswitch/clearwater-infrastructure — pull request #25 by rkd-msw (2013-10-18 17:43:34+00:00)
Title: [Reviewer: Mike] SNMP library that uses ZeroMQ stats - code complete

Mike,

Can you review this new library? It's code complete and works (i.e. tested on both a Bono and Sprout, albeit with no call load), but still has some debugging printfs in.

As a rough guide to the code:

oid.cpp and oidtree.cpp are C++ wrappers around the C SNMP API.
zmq_listener.cpp and zmq_message_handler.cpp pull ZMQ messages off the wire and plumb them into the global record of OIDs.
custom_handler.cpp is the interface to SNMP, which just pulls data off that global OID record.
bonodata.cpp and sproutdata.cpp set up the different data for Bono and Sprout nodes.

Still to do:
* Add an SNMP check to the live tests
* Open up SNMP on the security groups
* Sort out the Debian package to build and use these .so files
* Write a wiki doc on these SNMP stats

Rob