[App_rpt-users] app_rpt statistics
Johnny Keeker
cypresstower at yahoo.com
Sun Jan 12 16:05:42 UTC 2014
Kyle:
Thanks for sharing your scripts, you do great work.
JK
________________________________
From: K&R Yoksh <yokshs at gmail.com>
To: app_rpt <app_rpt-users at ohnosec.org>
Sent: Sunday, January 12, 2014 12:56 AM
Subject: Re: [App_rpt-users] app_rpt statistics
Hi Bob,
I'm not sure exactly what you're looking for, but I wrote a script (stats)
to grep parts of the 'stats' command
and use a cron job that executes another script (dailystats) just before
midnight each night.
Both of these scripts can be found here http://www.qsl.net/k0kn/scripts.html
for individual download, or you can download
all of my scripts in a tarball.
You can easily configure which fields in the stats page you want to monitor,
and you can run this for any/all nodes on your Asterisk
box. Here's an example of what my daily email looks like:
************************ NODE 2210 STATISTICS *************************
System...........................................: ENABLED
Incoming connections.............................: ENABLED
Time outs since system initialization............: 0
Keyups today.....................................: 136
Keyups since system initialization...............: 481
DTMF commands today..............................: 1
TX time today....................................: 00:13:24.247
TX time since system initialization..............: 00:58:26.838
Uptime...........................................: 95:56:45
Nodes currently connected to us..................: 28891, 29216, 28073, 2212
: 29737, 28980, 2216
************************ NODE 2211 STATISTICS *************************
System...........................................: ENABLED
Incoming connections.............................: ENABLED
Time outs since system initialization............: 0
Keyups today.....................................: 6
Keyups since system initialization...............: 6
DTMF commands today..............................: 3
TX time today....................................: 00:00:50.476
TX time since system initialization..............: 00:00:50.476
Uptime...........................................: 95:56:51
Nodes currently connected to us..................: <NONE>
************************ NODE 2212 STATISTICS *************************
System...........................................: ENABLED
Incoming connections.............................: ENABLED
Time outs since system initialization............: 0
Keyups today.....................................: 110
Keyups since system initialization...............: 110
DTMF commands today..............................: 4
TX time today....................................: 00:15:23.893
TX time since system initialization..............: 00:15:23.893
Uptime...........................................: 95:56:56
Nodes currently connected to us..................: 2210
If you want to see all of the available stats, go to your Asterisk CLI and
type:
rpt stats 1000 (replace 1000 with your node number)
The files generated by my scripts are saved to /dev/shm by default, and
could easily be redirected to a log file if you'd like.
As for the email capability of the node, I have an installer that will
automatically configure email on your node. It's also
available for download from my web page. It was written specifically to
support Gmail, so if you want to use a different
provider, some changes would have to be made in the script.
73,
Kyle Yoksh
K0KN
Olathe, KS
Allstar 2210-2219
--- Original Message ---
I'm looking for a way to capture and e-mail repeater useage statistics. In
searching through app_rpt.c, I found the following.
>From app_rpt.c
myrpt->dailytxtime = 0;
myrpt->totaltxtime = 0;
myrpt->dailykeyups = 0;
myrpt->totalkeyups = 0;
myrpt->dailykerchunks = 0;
myrpt->totalkerchunks = 0;
myrpt->dailyexecdcommands = 0;
myrpt->totalexecdcommands = 0;
My next questions is what is the form of an rpt.conf stanza that could
utilize these variables, capturing these statistics?
Is there a way of saving these statistics to a log file, or perhaps a way to
send by e-mail from the repeater to my e-mail address?
Thanks,
Bob
kk6ecm
_______________________________________________
App_rpt-users mailing list
App_rpt-users at ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20140112/ac80f61c/attachment.html>
More information about the App_rpt-users
mailing list