Asterik IP-PBX Statistics (SIP/IAX2 protocols)
Moderators: Developers, Moderators
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
Asterik IP-PBX Statistics (SIP/IAX2 protocols)
Dear colleagues,
We at ITConnection.ru are happy to post this Cacti script for Asterisk IP-PBX statistics. It's based on Python, works over AMI connection and provides cute and comprehensive graphs like this:
We are open for any change requests or follow-up discussions, please give us feedback by replying to this post!
Have a nice time with Asterisk, the world's most advanced open-source telephony platform!
Cheers!
We at ITConnection.ru are happy to post this Cacti script for Asterisk IP-PBX statistics. It's based on Python, works over AMI connection and provides cute and comprehensive graphs like this:
We are open for any change requests or follow-up discussions, please give us feedback by replying to this post!
Have a nice time with Asterisk, the world's most advanced open-source telephony platform!
Cheers!
- Attachments
-
- asx-stats-0.2.0.tgz
- Asterisk IP-PBX Statistics for Cacti, asx-stats, v0.2.0
- (27.69 KiB) Downloaded 7965 times
-
- asx-stats-0.1.5.1.tar.gz
- Asterisk IP-PBX Statistics for Cacti, asx-stats, v.0.1.5.1
- (22.74 KiB) Downloaded 5386 times
Last edited by itconnection on Mon Oct 06, 2008 7:35 am, edited 5 times in total.
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
Updated version with ZAP channels:
- Attachments
-
- asx-stats-0.1.1.tgz
- Asterisk IP-PBX Statistics for Cacti, asx-stats, v.0.1.1
- (19.57 KiB) Downloaded 4269 times
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
ok.. figured out the data and graph details..
but thought I'd give it a while manually..
I get:
root@ubiq-serv6 scripts]# ./asx-stats.py localhost 0
name 'localhost' is not defined
from:
[root@ubiq-serv6 scripts]# cat /etc/asx-stats.conf
# host 0
# host name
hosts.0.hostname = localhost
# AMI port
hosts.0.port = 5035
# username for AMI
hosts.0.username = cacti
# password for AMI
hosts.0.password = somepassword
but thought I'd give it a while manually..
I get:
root@ubiq-serv6 scripts]# ./asx-stats.py localhost 0
name 'localhost' is not defined
from:
[root@ubiq-serv6 scripts]# cat /etc/asx-stats.conf
# host 0
# host name
hosts.0.hostname = localhost
# AMI port
hosts.0.port = 5035
# username for AMI
hosts.0.username = cacti
# password for AMI
hosts.0.password = somepassword
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Ah... ok I get it.. made some more progress...
Now I can get:
[root@ubiq-serv6 scripts]# ./asx-stats.py 0
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
but it just sits there...
and if I try:
[root@ubiq-serv6 scripts]# ./asx-stats.py 0 iax.peers.ubigradin.status
again it just stops... no output..
Now I can get:
[root@ubiq-serv6 scripts]# ./asx-stats.py 0
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
but it just sits there...
and if I try:
[root@ubiq-serv6 scripts]# ./asx-stats.py 0 iax.peers.ubigradin.status
again it just stops... no output..
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
Try to use new updated version. Edit the file asx-stats.py: set the line "verbose = 0" to "verbose = 1" and post the output here.
- Attachments
-
- asx-stats-0.1.2.tgz
- Asterisk IP-PBX Statistics for Cacti, asx-stats, v.0.1.2
- (19.6 KiB) Downloaded 4356 times
I have exactly the same symptoms as above - it authenticates and then does nothing. With verbose=1, rhe response for me is as follows:-itconnection wrote:Try to use new updated version. Edit the file asx-stats.py: set the line "verbose = 0" to "verbose = 1" and post the output here.
Code: Select all
srv scripts # ./asx-stats.py 0
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
Response: Error
Message: Permission denied
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
That was pretty much the first thing I did.itconnection wrote:Looks like you don't have permission to run commands via AMI. Check your AMI configuration.
Code: Select all
[monitor]
secret = xxxxxxxxx
deny=
permit=192.168.1.0/255.255.255.255
read = system,call,log,verbose,command,agent,user
write =
-
- Posts: 11
- Joined: Wed Sep 19, 2007 5:31 am
Try to use this script, it can show a query.
- Attachments
-
- asx-stats-0.1.3.tgz
- Asterisk IP-PBX Statistics for Cacti, asx-stats, v.0.1.3
- (19.6 KiB) Downloaded 4611 times
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
This version of the script did indeed indicate that it was hanging after being getting an error in issuing a command.itconnection wrote:Try to use this script, it can show a query.
Code: Select all
srv scripts # ./asx-stats.py 0
action: login
username: queuemonitor
secret: queuemon
events: off
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted
action: command
command: iax2 show peer iax2.fwd.net
Response: Error
Message: Permission denied
However, now that that's all said and done, thanks greatly for this! It's looking good.
Who is online
Users browsing this forum: No registered users and 0 guests