vCenter monitoring script has errors

Hi all,

I have downloaded the latest source code from OpenNebula and upon registering my vCenter infrastructure, I see the below errors in the logs:

Mon Oct 5 02:40:57 2015 [Z0][InM][I]: Command execution fail: /var/lib/one/remotes/im/run_probes vcenter /vmfs/volumes 4124 20 0 SJCCLUSTER
Mon Oct 5 02:40:57 2015 [Z0][InM][I]: ./vcenter.rb:29:in `require’: /usr/lib/one/ruby/vcenter_driver.rb:342: undefined (?..) sequence: /^one-(?\d*)(-(?.))?$/ (SyntaxError)
Mon Oct 5 02:40:57 2015 [Z0][InM][I]: /usr/lib/one/ruby/vcenter_driver.rb:716: undefined (?..) sequence: /^one-(?\d
)(-(?.*))?$/
Mon Oct 5 02:40:57 2015 [Z0][InM][I]: from ./vcenter.rb:29
Mon Oct 5 02:40:57 2015 [Z0][InM][E]: Error executing vcenter.rb
Mon Oct 5 02:40:57 2015 [Z0][InM][I]: ExitCode: 1
Mon Oct 5 02:40:57 2015 [Z0][ONE][E]: Error monitoring Host SJCCLUSTER (0): Error executing vcenter.rb

Thanks,
Jesus

Probably due to ruby 1.9+ specific code. Changed already in the repository.

Thanks for your feedback.

Thank you Tino. I have validated that the issue no longer exists.