diff --git a/share/etc/oned.conf b/share/etc/oned.conf index 64208dc270..fffc1f102f 100644 --- a/share/etc/oned.conf +++ b/share/etc/oned.conf @@ -202,7 +202,7 @@ IM_MAD = [ IM_MAD = [ name = "kvm", executable = "one_im_ssh", - arguments = "-r 0 -t 15 kvm" ] + arguments = "-r 3 -t 15 kvm" ] #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- diff --git a/src/im_mad/remotes/common.d/collectd-client.rb b/src/im_mad/remotes/common.d/collectd-client.rb index 3ebfb7f636..95a52e6416 100644 --- a/src/im_mad/remotes/common.d/collectd-client.rb +++ b/src/im_mad/remotes/common.d/collectd-client.rb @@ -36,8 +36,8 @@ class CollectdClient @port = port # Monitorization slot - hosts_per_cycle = TOTAL_HOSTS / CYCLE - @my_slot = (@number % TOTAL_HOSTS) / hosts_per_cycle + hosts_per_cycle = TOTAL_HOSTS.to_f / CYCLE.to_f + @my_slot = ((@number % TOTAL_HOSTS) / hosts_per_cycle).to_i # Probes run_probes_cmd = File.join(DIRNAME, '..', "run_probes")