diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 09:47:11 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 09:47:11 +0000 |
commit | 0d5b2fb03f8942b4d38246705cae46bcea83078e (patch) | |
tree | 7f0763e9c6c1f4b01b14f150a9b9507343a33dcc /bin | |
parent | 2c21e63c29484720622d763052c5c6581d4b829d (diff) |
Updated ID for mauve alerts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/custodian-dequeue | 12 |
1 files 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']}" |