Error monitoring Host : Error executing poll [FIXED]

Hi i have this problem when i try to create a host in openNebula

i started with this configuration document
http://docs.opennebula.org/4.8/design_and_installation/quick_starts/qs_centos_vmware.html#qs-centos-vmware

everything its ok and now im trying with this document
http://archives.opennebula.org/documentation:rel4.4:ec2g

and im stuck with this host problem.

my oned.conf is this

P { margin-bottom: 0.08in; }A:link {  }

: Monitoring host Amazon (8)

Tue May 19 14:03:33 2015 [Z0][InM][I
Command execution fail: /var/lib/one/remotes/im/run_probes ec2
/vmfs/volumes 4124 20 8 Amazon

Tue May 19 14:03:33 2015 [Z0][InM][I:
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in
`gem_original_require’:
/usr/lib/ruby/gems/1.8/gems/aws-sdk-resources-2.0.42/lib/aws-sdk-resources.rb:29:
syntax error, unexpected ‘:’, expecting ‘)’ (SyntaxError)

Tue May 19 14:03:33 2015 [Z0][InM][I:
…json(definition), source_path: definition)

Tue May 19 14:03:33 2015 [Z0][InM][I:
^

Tue May 19 14:03:33 2015 [Z0][InM][I:
/usr/lib/ruby/gems/1.8/gems/aws-sdk-resources-2.0.42/lib/aws-sdk-resources.rb:44:
syntax error, unexpected kEND, expecting $end

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in
`require’

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from /usr/lib/ruby/gems/1.8/gems/aws-sdk-2.0.42/lib/aws-sdk.rb:1

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:128:in
`gem_orig_original_require’

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:128:in
`require’

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from ./…/…/vmm/ec2/ec2_driver.rb:34

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from ./poll:21:in `require’

Tue May 19 14:03:33 2015 [Z0][InM][I]:
from ./poll:21

Tue May 19 14:03:33 2015 [Z0][InM][E]:
Error executing poll

Tue May 19 14:03:33 2015 [Z0][InM][I]:
ExitCode: 1

Tue May 19 14:03:33 2015 [Z0][ONE][E]:
Error monitoring Host Amazon (8): Error executing poll


i will appreciated if you can give me an advice or help me

thanks

It should be solved as explained in the following thread: