summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 10:00:57 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 10:00:57 +0000
commit2611602f99524843103ab6eb04c2d6a82ae2d8f9 (patch)
tree6c9306ded91a528f33b1a6b107b1fc851f209d08 /bin
parent3994ee2a74701e4bf76c0c396933e419bf8271e2 (diff)
Interpolate the ID correctly. Remove duplication of the hostname.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-dequeue8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index 3c2b173..dbd545a 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -101,10 +101,10 @@ class Alert
# e.g. ping-example.vm.bytemark.co.uk-low
# e.g. http-http://example.com/page1-low
- alert.id = "#{@details['test_type']}-@details['target_host']-low"
+ alert.id = "#{@details['test_type']}-#{@details['target_host']}-low"
alert.subject = @details['target_host']
- alert.summary = "#{@details['target_host']} #{@details['test_alert']}"
+ alert.summary = @details['test_alert']
alert.detail = "The #{@details['test_type']} test failed against #{@details['target_host']}: #{detail}"
alert.raise_time = Time.now.to_i
update.alert << alert
@@ -127,10 +127,10 @@ class Alert
# e.g. ping-example.vm.bytemark.co.uk-low
# e.g. http-http://example.com/page1-low
- alert.id = "#{@details['test_type']}-@details['target_host']-low"
+ alert.id = "#{@details['test_type']}-#{@details['target_host']}-low"
alert.subject = @details['target_host']
- alert.summary = "#{@details['target_host']} #{@details['test_alert']}"
+ alert.summary = @details['test_alert']
alert.detail = "The #{@details['test_type']} test succeeded against #{@details['target_host']}"
alert.clear_time = Time.now.to_i
update.alert << alert