Asterisk Monitoring


From the submitter: This works using the Asterisk API + Python script + sed and tk. I don't know why but the ZenPack does not export a .conf file so you will have to create a file called asx-stats.conf as the following:
# host 0
# host name
hosts.0.hostname = asteriskipaddress
# AMI port
hosts.0.port = 5038
# username for AMI
# make sure that this AMI user has the following permissions:
# read=command
# write=command
hosts.0.username = user
# password for AMI
hosts.0.password = secret
# host 1
hosts.1.hostname = host1
hosts.1.port = 5038
hosts.1.username = user
hosts.1.password = secret
# host 2
hosts.2.hostname = host2
hosts.2.port = 5038
hosts.2.username = user
hosts.2.password = secret
- Modify the asx-stats.conf file as your need under ZenPack datasource folder
- You can configure more than 1 Asterisk server.
- The script asx-stats.py 0 will show the info of first server asx-stats.py 1 of the second server and so on.
- To create a user account on asterisk api --> http://www.voip-info.org/wiki/view/Asterisk+manager+API
[return: ZenPack Project Site]