summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 09:47:11 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 09:47:11 +0000
commitd6905b2aaee02fb93e93cc0396e28ae8dc26b147 (patch)
tree7f0763e9c6c1f4b01b14f150a9b9507343a33dcc
parentae6cd7aeddfa72fcc7928d8c476a97b945b53382 (diff)
Updated ID for mauve alerts
-rwxr-xr-xbin/custodian-dequeue12
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']}"