feature #1678: Improve monitoring algorithm and set better oned.conf defaults

This commit is contained in:
Jaime Melis committed 2013-10-24 12:42:55 +02:00
1 parent a8c0702400
commit a2b24764ac
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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" ]
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
@@ -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")