Runtime error detected ... (RuntimeError): Unbalanced String: help command

180 views
Skip to first unread message

senorsmile

unread,
Nov 11, 2013, 4:13:53 PM11/11/13
to zab...@googlegroups.com
Want to try zabcon out.  However, getting major errors: 

# ./zabcon.rb 
x86_64-linux
Runtime error detected
(RuntimeError): Unbalanced String: help commands
Top 10 items in backtrace
1: /root/.gem/ruby/2.0.0/gems/zabcon-0.0.392/libs/utility_items.rb:120:in `split2'
2: /root/.gem/ruby/2.0.0/gems/zabcon-0.0.392/libs/command_tree.rb:663:in `add_command'
3: /root/.gem/ruby/2.0.0/gems/zabcon-0.0.392/libs/zabcon_commands.rb:55:in `<top (required)>'
4: /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
5: /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
6: /root/.gem/ruby/2.0.0/gems/zabcon-0.0.392/libs/zabcon_core.rb:42:in `<top (required)>'
7: /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
8: /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
9: ./zabcon.rb:315:in `run'
10: ./zabcon.rb:326:in `<main>'


I am running an up to date Arch Linux x86_64 system (as of 2013 Nov 11)

Unfortunately, I don't know much about ruby so not sure where to start troubleshooting.  

Rob Brown

unread,
Dec 6, 2013, 1:14:50 PM12/6/13
to zab...@googlegroups.com
I have the same errors on CentOS 6.4 and Fedora 18.
Any advise on how to troubleshoot this? Or is it a bug?

senorsmile

unread,
Dec 6, 2013, 1:18:33 PM12/6/13
to zab...@googlegroups.com
I never got it working.  I ended up using the python zabbix api: 

It took a little it of fiddling, and lots of reading through the docs on the zabbix api, but I finally got everything in my environment working.  This is basically an extension to the zabbix api, so there isn't much functionality added really. 

Jord Wegge

unread,
Sep 20, 2014, 7:47:18 PM9/20/14
to zab...@googlegroups.com
Hi There,

Still the same error on Ubuntu 14.04.1 (3.13.0-35-generic) with zabcon (0.0.392) & zbxapi (0.3.8)

I wanted to use this in order to disable zabbix selectively per host (prior to host backup) & enable it again later.

Any other suggestions? Apparently this bug is active for almost a year now?

TIA,
Jord

root@zabbix:/usr/share/zabbix# zabcon.rb

Unable to find a default configuration file

x86_64-linux

Runtime error detected

(RuntimeError): Unbalanced String: help commands


Top 10 items in backtrace

1: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/libs/utility_items.rb:120:in `split2'

2: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/libs/command_tree.rb:663:in `add_command'

3: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/libs/zabcon_commands.rb:55:in `<top (required)>'

4: /root/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

5: /root/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

6: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/libs/zabcon_core.rb:42:in `<top (required)>'

7: /root/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

8: /root/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

9: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/zabcon.rb:315:in `run'

10: /root/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/zabcon-0.0.392/zabcon.rb:326:in `<top (required)>'



Op vrijdag 6 december 2013 19:18:33 UTC+1 schreef senorsmile:
Reply all
Reply to author
Forward
0 new messages