# How to monitor Virtual Machines on OpenNebula via CLI?

**URL:** <https://forum.opennebula.io/t/how-to-monitor-virtual-machines-on-opennebula-via-cli/1645>\
**Category:** Integration Support\
**Created:** [January 4, 2016, 1:56pm UTC](https://forum.opennebula.io/t/how-to-monitor-virtual-machines-on-opennebula-via-cli/1645 "2016-01-04T13:56:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Sharma](https://forum.opennebula.io/u/Amit_Sharma)\
**Post date:** [January 4, 2016, 1:56pm UTC](https://forum.opennebula.io/t/how-to-monitor-virtual-machines-on-opennebula-via-cli/1645/1 "2016-01-04T13:56:35Z")

</div>

I am trying to develop a cloud-bursting solution for our cluster. What I need is a way to monitor the VM’s on the openNebula cluster and turn off those vm’s whose cpu consumption is less then 10% for a certain amount of time. I am stuck at monitoring part.

I am not able to find any way via which I can timely monitor the VM’s for the CPU/Memory consumption status.

I am writing code on python. I am also using libcloud to access the openNebula from my code.

Any ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![jason.tevnan](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jason.tevnan](https://forum.opennebula.io/u/jason.tevnan)\
**Post date:** [January 5, 2016, 3:00pm UTC](https://forum.opennebula.io/t/how-to-monitor-virtual-machines-on-opennebula-via-cli/1645/2 "2016-01-05T15:00:42Z")

</div>

Have you taken a look at onegate/oneflow? That is essentially what they do, no extra tooling required as i undertand it…  
Jason

---

<div class="post-metadata">

**Author:** ![Amit\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Sharma](https://forum.opennebula.io/u/Amit_Sharma)\
**Post date:** [January 5, 2016, 3:15pm UTC](https://forum.opennebula.io/t/how-to-monitor-virtual-machines-on-opennebula-via-cli/1645/3 "2016-01-05T15:15:28Z")

</div>

Thanks Jason,  
But since I didn’t got a reply in time, I tried something else.  
I grep the CPU load from the ‘top’ command (which I run on the VM’s using  
paramiko in python).  
So it’s working for now.  
Coming back to the question, no, I haven’t went through onegate or oneflow.  
I’ll definitely try that and look for more options.  
Thanks for the reply, really appreciate it.

Amit
