From ce9c8eacb5f704aa2dff43ef209f98ffacb40828 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Wed, 29 Jan 2014 19:16:03 +0100 Subject: [PATCH] Bug #2689: Adjust to correct MONITORING_INTERVAL variable --- share/hooks/host_error.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/hooks/host_error.rb b/share/hooks/host_error.rb index 12fafcf708..0dd1bc717b 100755 --- a/share/hooks/host_error.rb +++ b/share/hooks/host_error.rb @@ -95,7 +95,7 @@ if repeat # Retrieve host monitor interval monitor_interval = nil File.read(CONFIG_FILE).each{|line| - monitor_interval = line.split("=").last.to_i if /HOST_MONITORING_INTERVAL/=~line + monitor_interval = line.split("=").last.to_i if /MONITORING_INTERVAL/=~line } # Sleep through the desired number of monitor interval sleep (repeat * monitor_interval)