# What's wrong? maybe a bug?

**URL:** <https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193>\
**Category:** Product Support\
**Created:** [April 23, 2017, 1:36pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193 "2017-04-23T13:36:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [April 23, 2017, 1:36pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/1 "2017-04-23T13:36:43Z")

</div>

Hello, im using Opennebula latest version for my vmware cluster (22 hosts - 12 datastores), active and monitored in opennebula is just 30 vm. From some weeks my opennebula server going to high load, i checked /var/log/one/oned.log and no errors but the vm status became UNKNOWN.  
I had done some tests and discovered that after restart opennebula the load is low… after 10/15 minutes the first 100 is at 100% and so on for all the server cpus, so for me the only solution is just restart opennebula.  
I suppose that ruby is getting all the server resources infact after 1 hour i can see serval processes as this:

/bin/bash /var/lib/one/remotes/im/run\_probes vcenter /var/lib/one//datastores 4124 20 4 Cluster

I attached the HTOP resut…

What’s wrong with my opennebula installation ?  
Thanks

 ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/154dbb005845cbbfb5b681e891420dc4ea4cfdd7.png)

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [April 24, 2017, 9:34am UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/2 "2017-04-24T09:34:43Z")

</div>

It seems that monitoring takes more that 60 seconds to finish, the default monitoring interval. This causes new monitoring processes to start before the previous one finished.

- Stop OpenNebula
- Clean the host of run probes / ruby processes
- Time the execution of the monitoring agent (as oneadmin):

```auto
$ time /bin/bash /var/lib/one/remotes/im/run_probes vcenter /var/lib/one//datastores 4124 20 4 Cluster

```

- Change the monitoring interval to a higher value that the time you got in the last step

> <https://github.com/OpenNebula/one/blob/one-5.2/share/etc/oned.conf#L66>

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [April 24, 2017, 2:30pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/3 "2017-04-24T14:30:53Z")

</div>

Hello Javi… i increased MONITORING\_INTERVAL = 240  
but same result… all cpu at 100%

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [April 25, 2017, 1:49pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/4 "2017-04-25T13:49:08Z")

</div>

How much did the manual monitoring took?

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [April 25, 2017, 3:24pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/5 "2017-04-25T15:24:47Z")

</div>

How i can check it ?  
thanks

---

<div class="post-metadata">

**Author:** ![Thomas\_Stein](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Thomas\_Stein](https://forum.opennebula.io/u/Thomas_Stein)\
**Post date:** [April 26, 2017, 6:19am UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/6 "2017-04-26T06:19:32Z")

</div>

> [@jfontan](#):
>
> $ time /bin/bash /var/lib/one/remotes/im/run\_probes vcenter /var/lib/one//datastores 4124 20 4 Cluster

Javi already told you. 🙂

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [April 26, 2017, 8:38am UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/7 "2017-04-26T08:38:22Z")

</div>

Just tried… im getting the following error:

[oneadmin@cloud root]$ time /bin/bash /var/lib/one/remotes/im/run\_probes vcenter /var/lib/one//datastores 4124 20 4 Cluster  
/usr/lib/one/ruby/vcenter\_driver.rb:854:in `rescue in initialize_one': Error initializing OpenNebula client: Error getting oned configuration : Connection refused - connect(2) (RuntimeError) from /usr/lib/one/ruby/vcenter_driver.rb:837:in`initialize\_one’  
from /usr/lib/one/ruby/vcenter\_driver.rb:161:in `initialize' from ./vcenter.rb:37:in`new’  
from ./vcenter.rb:37:in `'  
ERROR MESSAGE --8\<------  
Error executing vcenter.rb  
ERROR MESSAGE ------\>8–

real 0m0.485s  
user 0m0.434s  
sys 0m0.053s

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [April 26, 2017, 3:55pm UTC](https://forum.opennebula.io/t/whats-wrong-maybe-a-bug/4193/8 "2017-04-26T15:55:22Z")

</div>

Checked… taking 20 minutes… how’s possible ?  
Thanks
