From f75f7d399f1146145004a98bac8b68c1a58f7580 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 20 Nov 2012 16:17:17 +0000 Subject: Fixed detail --- lib/custodian/alerter.rb | 8 ++++---- 1 file 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}

The #{@details['test_type']} test succeeded against #{@details['target_host']}

#{resolved}

" + alert.detail = "#{inside}

The #{@details['test_type']} test failed against #{@details['target_host']}: #{detail}

#{resolved}

" # # Return the alert to the caller. -- cgit v1.2.1