aouyar / PyMunin

Python Module for developing Munin Multigraph Monitoring Plugins. Multigraph Plugins for Apache Web Server, Apache Tomcat, APC PHP Cache, PHP FPM (Fast Process Manager), Asterisk, FreeSWITCH, Lighttpd, Memcached, MySQL Database, Nginx, NTP, PostgreSQL Database, CPU Utilization, Memory Utilization, Disk Usage, Disk I/O, Network Interfaces, Network Connections, Processes and Threads, etc.
http://aouyar.github.io/PyMunin
GNU General Public License v3.0
128 stars 44 forks source link

Support for Asterisk 1.8 in DAHDI channels #3

Closed arpagon closed 13 years ago

arpagon commented 13 years ago

Hi Ali, dahdi channels in asterisk 1.8 is displayed differently. are now more informative.

Asterisk 1.8 before

DAHDI/1-1

after Asterisk 1.8

DAHDI/i1/4444141-id
type / span / callerid-id

should update function. "getChannelStats"

I just did this for line in cmdresp.splitlines(): mobj = re.match('(sip|iax2|zap|dahdi|local|misdn)\/(\w+)', line, re.IGNORECASE) if mobj:

aouyar commented 13 years ago

I will be updating the code to apply the fix for Asterisk 1.8 as soon as I have access to my laptop again, that is by sunday or monday. Do you know if the use of pseudo dahdi/zap channel still applies to Asterisk 1.8?

arpagon commented 13 years ago

hi,

Yes, still applies

DAHDI/pseudo-1744321 s@default:1 Rsrvd (None) DAHDI/pseudo-2120884 s@default:1 Rsrvd (None)

aouyar commented 13 years ago

Implemented the suggested fix for Asterisk 1.8.