<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Kyle:</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thanks for sharing your scripts, you do great work.  </SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">JK</SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> K&R Yoksh <yokshs@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> app_rpt <app_rpt-users@ohnosec.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, January 12, 2014 12:56 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [App_rpt-users] app_rpt statistics<BR></FONT></DIV>
<DIV class=y_msg_container><BR><BR>Hi Bob,<BR><BR>I'm not sure exactly what you're looking for, but I wrote a script (stats) <BR>to grep parts of the 'stats' command<BR>and use a cron job that executes another script (dailystats) just before <BR>midnight each night.<BR><BR>Both of these scripts can be found here <A href="http://www.qsl.net/k0kn/scripts.html" target=_blank>http://www.qsl.net/k0kn/scripts.html</A><BR>for individual download, or you can download<BR>all of my scripts in a tarball.<BR><BR>You can easily configure which fields in the stats page you want to monitor, <BR>and you can run this for any/all nodes on your Asterisk<BR>box. Here's an example of what my daily email looks like:<BR><BR>************************ NODE 2210 STATISTICS *************************<BR>System...........................................: ENABLED<BR>Incoming connections.............................: ENABLED<BR>Time outs since system initialization............:
 0<BR>Keyups today.....................................: 136<BR>Keyups since system initialization...............: 481<BR>DTMF commands today..............................: 1<BR>TX time today....................................: 00:13:24.247<BR>TX time since system initialization..............: 00:58:26.838<BR>Uptime...........................................: 95:56:45<BR>Nodes currently connected to us..................: 28891, 29216, 28073, 2212<BR>                                                : 29737, 28980, 2216<BR><BR><BR>************************ NODE 2211 STATISTICS *************************<BR>System...........................................: ENABLED<BR>Incoming connections.............................: ENABLED<BR>Time outs since system initialization............: 0<BR>Keyups today.....................................:
 6<BR>Keyups since system initialization...............: 6<BR>DTMF commands today..............................: 3<BR>TX time today....................................: 00:00:50.476<BR>TX time since system initialization..............: 00:00:50.476<BR>Uptime...........................................: 95:56:51<BR>Nodes currently connected to us..................: <NONE><BR><BR><BR><BR>************************ NODE 2212 STATISTICS *************************<BR>System...........................................: ENABLED<BR>Incoming connections.............................: ENABLED<BR>Time outs since system initialization............: 0<BR>Keyups today.....................................: 110<BR>Keyups since system initialization...............: 110<BR>DTMF commands today..............................: 4<BR>TX time today....................................: 00:15:23.893<BR>TX time since system initialization..............:
 00:15:23.893<BR>Uptime...........................................: 95:56:56<BR>Nodes currently connected to us..................: 2210<BR><BR><BR><BR>If you want to see all of the available stats, go to your Asterisk CLI and <BR>type:<BR><BR>rpt stats 1000          (replace 1000 with your node number)<BR><BR>The files generated by my scripts are saved to /dev/shm by default, and <BR>could easily be redirected to a log file if you'd like.<BR><BR>As for the email capability of the node, I have an installer that will <BR>automatically configure email on your node. It's also<BR>available for download from my web page. It was written specifically to <BR>support Gmail, so if you want to use a different<BR>provider, some changes would have to be made in the script.<BR><BR>73,<BR><BR>Kyle Yoksh<BR>K0KN<BR>Olathe, KS<BR>Allstar 2210-2219<BR><BR><BR>--- Original Message ---<BR><BR>I'm looking for a way to capture and e-mail repeater
 useage statistics. In<BR>searching through app_rpt.c, I found the following.<BR><BR><BR><BR>>From app_rpt.c<BR><BR>            myrpt->dailytxtime = 0;<BR><BR>            myrpt->totaltxtime = 0;<BR><BR>            myrpt->dailykeyups = 0;<BR><BR>            myrpt->totalkeyups = 0;<BR><BR>            myrpt->dailykerchunks = 0;<BR><BR>            myrpt->totalkerchunks = 0;<BR><BR>            myrpt->dailyexecdcommands = 0;<BR><BR>            myrpt->totalexecdcommands = 0;<BR><BR><BR><BR>My next questions is what is the form of an rpt.conf stanza that could<BR>utilize these variables, capturing these statistics?<BR><BR><BR><BR>Is there a way of saving these statistics to a log file, or perhaps a
 way to<BR>send by e-mail from the repeater to my e-mail address?<BR><BR><BR><BR>Thanks,<BR><BR>Bob<BR><BR>kk6ecm<BR><BR>_______________________________________________<BR>App_rpt-users mailing list<BR><A href="mailto:App_rpt-users@ohnosec.org" ymailto="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</A><BR><A href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target=_blank>http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</A><BR><BR><BR></DIV></DIV></DIV></div></body></html>