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)