bin/check_check in ruby-nagios-0.1.0 vs bin/check_check in ruby-nagios-0.2.0
- old
+ new
@@ -153,10 +153,10 @@
["WARNING", "CRITICAL", "UNKNOWN"].each do |state|
if results[state] && results[state].size > 0
puts "Services in #{state}:"
results[state].sort { |a,b| a["host_name"] <=> b["host_name"] }.each do |service|
total_results += 1
- puts " #{service["host_name"]} => #{service["service_description"]}"
+ puts " #{service["host_name"]} => #{service["service_description"]} (#{service["plugin_output"]})"
end
end # if results[state]
end # for each non-OK state
# If everything is OK, still print detailed output for confirmation