[Serusers] SER statistics

Alexandr Dubovikov shurik at start4.info
Sat Jul 1 00:15:33 CEST 2006


On Fri, Jun 30, 2006 at 12:20:43PM -0700, Adrian A wrote:
> Hi,

Hi,

> 
> I'm looking for a way to extract statistics from SER such as registrations
> or invites per second.  I was thinking I could either log all of these to a
> file using xlog and then parse it, but it's not going to be pretty.  Does
> anyone have any suggestions?
> 
> Thanks.

ngrep -Wbyline port 5060 2>&1 > stat.log &


after it you can parse the log:

grep "INVITE sip:" stat.log | wc -l 
grep "REGISTER sip:" stat.log | wc -l 
cp /dev/null stat.log
sleep 60

make a script and put it to crontab (*/1)


> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers


Wbr,
-- 
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
    AD1-UANIC      *  ICQ: 122351182  *  http://www.start4.info



More information about the sr-users mailing list