<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
there is no pre-defined statistic for that.<br>
<br>
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).<br>
<br>
This new stats has to be updated when authentication function fails,
based on reply code.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10/4/12 10:58 PM, Anatoly Ivanov
wrote:<br>
</div>
<blockquote
cite="mid:CA+Z2xAeb51RgVcfEUomoTaUSRsmhYuge=p-Q+t3H-gfgcA7rvw@mail.gmail.com"
type="cite">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.
<div>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?</div>
<div><br>
</div>
<div>Any advice?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Anatoly.</div>
<div><br>
</div>
<div><br>
<div>
<div><br>
<br>
<div class="gmail_quote">On Wed, Oct 3, 2012 at 3:28 PM,
Anatoly Ivanov <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:anatoly.ivanov@gmail.com" target="_blank">anatoly.ivanov@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,
<div><br>
</div>
<div>I am observing weird behavior of snmpstats.so - I
see openserSIPRegAcceptedRegistrations being updated,
but openserSIPRegRejectedRegistrations stays at zero.</div>
<div>Could somebody please explain under what conditions
this counter is being incremented?</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Anatoly.</div>
<div><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a></pre>
</body>
</html>