Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asteriskstats doesn't work with asterisk 1.8.22 #38

Open
acheck opened this issue Jul 19, 2013 · 0 comments
Open

asteriskstats doesn't work with asterisk 1.8.22 #38

acheck opened this issue Jul 19, 2013 · 0 comments

Comments

@acheck
Copy link

acheck commented Jul 19, 2013

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
load_entry_point('PyMunin==0.9.28', 'console_scripts', 'pymunin-asteriskstats')()
File "/usr/lib/python2.6/site-packages/pymunin/plugins/asteriskstats.py", line 422, in main
sys.exit(muninMain(MuninAsteriskPlugin))
File "/usr/lib/python2.6/site-packages/pymunin/init.py", line 957, in muninMain
plugin = pluginClass(argv, env, debug)
File "/usr/lib/python2.6/site-packages/pymunin/plugins/asteriskstats.py", line 229, in init
self.saveState(self._queues)
File "/usr/lib/python2.6/site-packages/pymunin/init.py", line 463, in saveState
% self._stateFile)
IOError: Failure in storing plugin state in file: /var/lib/munin/plugin-state/nobody/asteriskstats-

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant