Skip to content
Permalink
Browse files

Add self describing tag for deadman alerts

  • Loading branch information
pwnbus committed Mar 24, 2020
1 parent add9c44 commit 21380a1c98506f089e9f3bb36d28ddbdf2579462
Showing with 4 additions and 4 deletions.
  1. +1 −1 alerts/deadman.py
  2. +1 −1 alerts/deadman_generic.py
  3. +1 −1 tests/alerts/test_deadman.py
  4. +1 −1 tests/alerts/test_deadman_generic.py
@@ -37,7 +37,7 @@ def main(self):
# if no events found
def onNoEvent(self, hostname):
category = 'deadman'
tags = ['bro']
tags = ['bro', 'bro_deadman']
severity = 'ERROR'

summary = ('No {0} bro healthcheck events found the past 20 minutes'.format(hostname))
@@ -42,7 +42,7 @@ def process_alert(self, alert_config):
# if no events found
def onNoEvent(self, description):
category = 'deadman'
tags = ['deadman']
tags = ['deadman', 'generic_deadman']
severity = 'ERROR'

summary = "Deadman check failed for '{0}' the past {1} {2}".format(
@@ -24,7 +24,7 @@ class TestAlertDeadman(AlertTestSuite):
"category": "deadman",
"severity": "ERROR",
"summary": 'No host1 bro healthcheck events found the past 20 minutes',
"tags": ['bro'],
"tags": ['bro', 'bro_deadman'],
}

test_cases = []
@@ -31,7 +31,7 @@ class TestDeadmanGeneric(AlertTestSuite):
}
unmatched_first_alert = {
"category": "deadman",
"tags": ['deadman'],
"tags": ['deadman', 'generic_deadman'],
"severity": "ERROR",
"summary": 'Deadman check failed for \'Sample Alert 1\' the past 5 minutes',
}

0 comments on commit 21380a1

Please sign in to comment.
You can’t perform that action at this time.