[sr-dev] git:master: snmpstats Add support for the Websocket module statistics

Olle E. Johansson oej at edvina.net
Sat Mar 30 09:54:40 CET 2013


Module: sip-router
Branch: master
Commit: f139948421f2232efae6c2bdd6ea95547b6de533
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f139948421f2232efae6c2bdd6ea95547b6de533

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date:   Sat Mar 30 09:49:16 2013 +0100

snmpstats Add support for the Websocket module statistics

Hint to developers: If you add statistics and selects in your module, you
make it very easy to add SNMP support for your module. Then SNMPstats
can just use generic APIs to find your data. Please also add a generic
way of finding out if a module is configured and used too, if possible.
Sometimes modules are just loaded, but not used anywhere. Better to
reflect real data in SNMP if possible.

Using the old "SER" way of using selects for config data that
is allowed to change at runtime opens up for SNMP writes to manage
your module as well.

And of course, using selects and counters/statistics variables also
helps the RPC interface, so it's both cool and the Right Thing To Do (TM).

Yes, commit messages can be informative as well. :-)

---

 modules/snmpstats/kamailioNet.c     |  279 ++++++++++++++++++++++++++++++++++-
 modules/snmpstats/kamailioNet.h     |    9 +
 modules/snmpstats/mibs/KAMAILIO-MIB |  104 +++++++++++++-
 3 files changed, 382 insertions(+), 10 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=f139948421f2232efae6c2bdd6ea95547b6de533



More information about the sr-dev mailing list