From d6905b2aaee02fb93e93cc0396e28ae8dc26b147 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 09:47:11 +0000 Subject: Updated ID for mauve alerts --- bin/custodian-dequeue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index 74e5c3f..3acbb69 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -98,7 +98,11 @@ class Alert update.replace = true alert = Mauve::Proto::Alert.new - alert.id = "#{@details['test_type']}-low" + + # e.g. ping-example.vm.bytemark.co.uk-low + # e.g. http-http://example.com/page1-low + alert.id = "#{@details['test_type']}-@details['test_host']-low" + alert.subject = @details['test_host'] alert.summary = "#{@details['test_host']} #{@details['test_alert']}" alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}: #{detail}" @@ -120,7 +124,11 @@ class Alert update.replace = true alert = Mauve::Proto::Alert.new - alert.id = "#{@details['test_type']}-low" + + # e.g. ping-example.vm.bytemark.co.uk-low + # e.g. http-http://example.com/page1-low + alert.id = "#{@details['test_type']}-@details['test_host']-low" + alert.subject = @details['test_host'] alert.summary = "#{@details['test_host']} #{@details['test_alert']}" alert.detail = "The #{@details['test_type']} test succeeded against #{@details['test_host']}" -- cgit v1.2.1