Skip to content
Snippets Groups Projects
Commit d785ed45 authored by Brian Moe's avatar Brian Moe
Browse files

Added burst_omega channel to lvalerts

parent 84c6411e
No related branches found
No related tags found
No related merge requests found
......@@ -50,18 +50,18 @@ Event Summary:
send_mail(subject, message, fromaddress, toaddress)
def issueXMPPAlert(event, location):
nodename = "%s_%s"% (event.group.name, event.get_analysisType_display())
nodename = nodename.lower()
# XXX awful!
# Need a good way to know which things to send out to lvalert.
# Currently, only Test/* and CBC/MBTAOnline get alerts.
if event.analysisType != 'MBTA' and event.group.name != 'Test':
# Currently, only MBTAOnline and Omega get alerts.
if nodename not in ['cbc_mbtaonline', 'burst_omega', 'test_omega', 'test_mbtaonline']:
return
env = {}
env["PYTHONPATH"] = ":".join(sys.path)
nodename = "%s_%s"% (event.group.name, event.get_analysisType_display())
nodename = nodename.lower()
null = open('/dev/null','w')
p = Popen(
["lvalert_send",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment