[one-users] Customizing monitoring
Javier Fontan
jfontan at fdi.ucm.es
Tue Sep 1 03:27:19 PDT 2009
Hello,
VM information is taken by the VMM driver. In this case there are no
shell script probes executed in the remote host and you have to modify
the driver directly. For KVM the file to modify is
$ONE_LOCATION/lib/mads/one_vmm_kvm.rb. The function that gets the
information from the VM is called "poll" and all the information bits
are added to info variable separated by spaces. It should look
something like:
MEMORY=1982734 STATE=a
This function is called for each VM and "deploy_id" variable holds the
name the VM has for libvirt/kvm.
Bye
On Fri, Aug 28, 2009 at 10:48 PM, Rangababu
Chakravarthula<rbabu at hexagrid.com> wrote:
> Thank you for the information.
> I think I typed "host" instead of "guest" in my original email. I am trying
> to get the guest vm status of each vm in the farm.
> And I see there is onevm list or onevm show commands to execute. Is that
> command returning the status from Opennebula database or is it actually
> probing the remote VM and returning it?
> If its returning from database, I guess some monitor program is updating the
> Opennebula database with the status information behind the scenes. Can that
> monitor program be extended to update our db too?
> If the onevm list/ onevm show command directly probing the remote VM and
> returning the information, how to extend that to meet our requirement?
> Ranga
> On Thu, Aug 27, 2009 at 6:26 AM, Javier Fontan <jfontan at fdi.ucm.es> wrote:
>>
>> Hello,
>>
>> Information manger is designed to be easily extended. The scripts just
>> to return something like this:
>>
>> --8<------
>> DISKFREE=87238
>> FANSPEED=3500
>> ------>8--
>>
>> Then you add the script in the configuration file of the driver an it
>> will be executed remotely and those information added to the database.
>> To get this information you have to use onehost show. In the new 1.4
>> beta (1.3.80) you have --xml option for onehost to give this
>> information in xml format so it will be easily parsed by a program.
>>
>> Bye
>>
>>
>> On Wed, Aug 26, 2009 at 7:50 PM, Rangababu
>> Chakravarthula<rbabu at hexagrid.com> wrote:
>> > I understand from this
>> > link http://www.opennebula.org/doku.php?id=documentation:rel1.2:img that
>> > one
>> > uses probe scripts to get information on remote VMs. Is there a way to
>> > customize or extend these to update our database with status and other
>> > metrics for all the VM nodes.
>> > The documentation says we can get host status by executing onevm list or
>> > show but we have to again parse that data and update our db.
>> > We are using KVM hypervisor.
>> > Any help is appreciated.
>> > Ranga
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>> >
>>
>>
>>
>> --
>> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
>> DSA Research Group: http://dsa-research.org
>> Globus GridWay Metascheduler: http://www.GridWay.org
>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
--
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
More information about the Users
mailing list