PyMunin
PyMunin copied to clipboard
asteriskstats doesn't work with asterisk 1.8.22
the problem is with 'show queue' output processing
[root@thirdlane plugins]# munin-run asteriskstats
ERROR: IOError('Failure in storing plugin state in file: /var/lib/munin/plugin-state/nobody/asteriskstats-',)
Traceback (most recent call last):
File "/etc/munin/plugins/asteriskstats", line 9, in
[root@thirdlane PyMunin]# asterisk -rx "queue show" sales-1001 has 0 calls (max 10) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s Members: SIP/102-1001 (realtime) (Unavailable) has taken no calls yet No Callers
sales-1002 has 0 calls (max 10) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s Members: SIP/102-1002 (realtime) (Unavailable) has taken no calls yet SIP/101-1002 (realtime) (Unavailable) has taken no calls yet No Callers
support-1001 has 0 calls (max 10) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s Members: SIP/103-1001 (realtime) (Unavailable) has taken no calls yet No Callers
sales-thirdlane has 0 calls (max 10) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s No Members No Callers
[root@thirdlane PyMunin]# asterisk -rx "core show version" Asterisk 1.8.23.0 built by root @ distro-el6.thirdlane.com on a x86_64 running Linux on 2013-07-17 10:06:10 UTC