Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated regex for ack to not interfere

  • Loading branch information...
commit ec256c18901c709dd0778c17016d4ea1c0a00a72 1 parent 6e0d095
rtucker-mozilla rtucker-mozilla authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 MozillaNagiosStatus.py
4 MozillaNagiosStatus.py
View
@@ -67,8 +67,8 @@ def __init__(self, connection, channels):
def build_regex_list(self):
self.message_commands.append({'regex':'^(?:\s*ack\s*)?(\d+)(?:\s*ack\s*)?[:\s]+([^:]+)\s*$', 'callback':self.ack})
- self.message_commands.append({'regex':'^\s*ack ([^:]+):([^:]+)\s*$', 'callback':self.ack_by_host_with_service})
- self.message_commands.append({'regex':'^\s*ack ([^:]+)\s(.*)$', 'callback':self.ack_by_host})
+ self.message_commands.append({'regex':'^ack ([^:]+):([^:]+)\s*$', 'callback':self.ack_by_host_with_service})
+ self.message_commands.append({'regex':'^ack ([^:]+)\s(.*)$', 'callback':self.ack_by_host})
self.message_commands.append({'regex':'^unack (\d+)$', 'callback':self.unack})
self.message_commands.append({'regex':'^unack ([^:]+)\s*$', 'callback':self.unack_by_host})
self.message_commands.append({'regex':'^status ([^:]+)\s*$', 'callback':self.status_by_host_name})
Please sign in to comment.
Something went wrong with that request. Please try again.