<br>
On 19 Mar 2015, at 17:10, mading087 <notifications@github.com> wrote:<br>
<br>
> Thanks for the info. The same text is in the 4.2 usrloc doc as well. <br>
> Stats are important in some business cases. Guess we can consider this an enhancement. Wonder what is the best way to maintain the stats in db only mode. <br>
> 1. change snmpstats to read from db instead of memory<br>
> <br>
That would not be smart - the number of hits on the database would not be low. I don't<br>
see this as a snmpstats function - could be a usrloc function.<br>
> 2. maybe something easier than snmp, like acc/cdr from db?<br>
> <br>
Counters are cool. Adding counters that keep track is propably the best way forward. <br>
But that will be confusing if you are using db-only mode with multiple servers, since<br>
there are additions done somewhere else. <br>
<br>
In the end if you want to check this with snmp I suggest you write your own scripts and<br>
add to the MIB using the custom options in snmpd.conf - its' quite easy and would solve<br>
your problem.<br>
<br>
As an alternative you can define your own script counter and have a background script<br>
that runs your SQL query every X minutes and updates a counter that you can watch<br>
with kamcmd and the old kamctl. <br>
<br>
/O

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/113#issuecomment-83647063">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZV1qvy02nNNukCv9CoSSqm6K_70Oks5n2u2jgaJpZM4Dxach.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/113#issuecomment-83647063"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>