diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-20 16:17:17 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-20 16:17:17 +0000 |
commit | f75f7d399f1146145004a98bac8b68c1a58f7580 (patch) | |
tree | ba03edb7f4cacd7332d3b67a92b405a76df37526 /lib/custodian | |
parent | e9744edacfa67454ae38b092036ae4e29297fc1d (diff) |
Fixed detail
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/alerter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/alerter.rb b/lib/custodian/alerter.rb index 19df3f5..cb251e7 100644 --- a/lib/custodian/alerter.rb +++ b/lib/custodian/alerter.rb @@ -146,7 +146,7 @@ class Alerter # # Construct an alert with our test details. # - alert = get_alert() + alert = get_alert(detail) # # We're raising this alert. @@ -179,7 +179,7 @@ class Alerter # # Construct an alert with our test details. # - alert = get_alert() + alert = get_alert( "" ) # # We're clearing this alert. @@ -203,7 +203,7 @@ class Alerter # Most of the mess of this method is ensuring there is some # "helpful" data in the detail-field of the alert. # - def get_alert + def get_alert( detail ) # # Is this alert affecting a machine inside/outside our network? @@ -253,7 +253,7 @@ class Alerter alert.id = "#{@details['test_type']}-#{@details['target_host']}" alert.subject = subject alert.summary = "#{@details['test_alert']} to #{subject} failed #{detail}" - alert.detail = "#{inside} <p>The #{@details['test_type']} test succeeded against #{@details['target_host']}</p><p>#{resolved}</p>" + alert.detail = "#{inside} <p>The #{@details['test_type']} test failed against #{@details['target_host']}: #{detail}</p><p>#{resolved}</p>" # # Return the alert to the caller. |