Thanks Daniel.

I find it surprising that i am the only one interested in monitoring the failed registrations. The most obvious and easiest solution for me would be to make a one-line patch to count failed authentications as rejected regs in snmp stats. I cannot see any disadvantages to this, except the fact that this patch probably will not be accepted by supporters, and i will end up adopting it to every build.

Please let me know if you see some other disadvantages to this idea.

Thank you,
Anatoly.

Sent from my iPod Shuffle.

On Oct 5, 2012, at 12:16, Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

there is no pre-defined statistic for that.

You can define custom statistics by using statistics module, still it will not be exported via snmpstats, but you can fetch it via xmlrpx (or mi/rpc commands).

This new stats has to be updated when authentication function fails, based on reply code.

Cheers,
Daniel

On 10/4/12 10:58 PM, Anatoly Ivanov wrote:
Ok, I have resorted to reading the source code. It looks like rejected_ registrations is only updated if save() fails, which does not exactly fit my needs - I need a counter to log authentication failures.
Does anyone know if there is an SNMP counter that could help me to achieve this? Or should I just call save() with some invalid parameters, to trigger the update?

Any advice?

Thank you,
Anatoly.




On Wed, Oct 3, 2012 at 3:28 PM, Anatoly Ivanov <anatoly.ivanov@gmail.com> wrote:
Hi,

I am observing weird behavior of snmpstats.so - I see openserSIPRegAcceptedRegistrations being updated, but openserSIPRegRejectedRegistrations stays at zero.
Could somebody please explain under what conditions this counter is being incremented?

I am using auth_radius, so I suspect I simply do not reject failed registartions the 'proper' way, thus causing the counter to stay at 0.

Thank you,
Anatoly.




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu