<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Thanks Daniel.</div><div><br></div><div>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.</div>
<div><br></div><div>Please let me know if you see some other disadvantages to this idea.</div><div><br></div><div>Thank you,</div><div>Anatoly.</div><div><br>Sent from my iPod Shuffle.</div><div><br>On Oct 5, 2012, at 12:16, Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>
<br></div><div><span></span></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  
    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">&lt;<a href="mailto:anatoly.ivanov@gmail.com" target="_blank">anatoly.ivanov@gmail.com</a>&gt;</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 &#39;proper&#39; 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>_______________________________________________
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>
  

</div></blockquote></body></html>