diff --git a/run.rb b/run.rb index defbe34..eb0b253 100755 --- a/run.rb +++ b/run.rb @@ -24,6 +24,10 @@ admin = @conf['admin'] @probes = @conf['probes'] @tunit = @conf['units'] +## Non-configurable +@simplehot = 75 +@simplecold = 50 + ### Begin sanity check ### STDOUT.sync = true errcount = 0 @@ -172,9 +176,9 @@ def process_tdata(host, simple=false) if tdata.is_integer? print tdata + "°#{@tunit}" if simple #This is mostly just an Easter egg - if tdata.to_i > 75 + if tdata.to_i > @simplehot sdata = "Hot" - elsif tdata.to_i < 50 + elsif tdata.to_i < @simplecold sdata = "Cold" else sdata = "Fair"