[one-users] one 3.2 : accouting ruby error
Daniel Molina
dmolina at opennebula.org
Thu Feb 9 06:29:58 PST 2012
Hi,
On 3 February 2012 10:51, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
> Hi,
> I upgrade one to 3.2 using deb package.
>
> I tried the accounting test available on web site but I have errors:
>
> 1) I had to add require 'rubygems' , else json is not found.
>
> 2) I have a undefined method error:
>
> oneadmin at genokvm4:~$ ruby /tmp/test.rb
> /tmp/test.rb:30: undefined method `host_monitoring' for
> #<OneWatchClient::WatchClient:0x7f8422d7cbb8> (NoMethodError)
I guess you are referring to the example that is shown in this page:
http://www.opennebula.org/documentation:rel3.2:statistics_api
That guide is outdated, I will update it as soon as possible. You can
see an example of this library in the Sunstone server code:
https://github.com/OpenNebula/one/blob/master/src/sunstone/models/SunstoneServer.rb#L270
This library is used to retrieved the VMs and Hosts monitoring
information. You can use the oneacct client if you want to retrieve
accounting information instead of monitoring.
http://www.opennebula.org/documentation:rel3.2:accounting
Cheers
>
>
> Olivier
>
> --
>
> gpg key id: 4096R/326D8438 (pgp.mit.edu)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
More information about the Users
mailing list