Module: check_mk
Branch: master
Commit: 9bfc76c0c239c893f0c70208420c7efbb48a13fc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9bfc76c0c239c8…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jul 27 13:52:30 2017 +0200
Removed dead code.
Change-Id: Ie370ae13b492422982d770c32741becf33ae7a2e
---
bin/mkeventd | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/bin/mkeventd b/bin/mkeventd
index ba03ada..b7f28a9 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -380,14 +380,6 @@ def replace_groups(text, origtext, groups):
return text
-def format_exception():
- import StringIO
- txt = StringIO.StringIO()
- t, v, tb = sys.exc_info()
- traceback.print_exception(t, v, tb, None, txt)
- return txt.getvalue()
-
-
# Class for debugging locking. Beware: This does not really
# implement a true locking! It's just for detecting deadlocks!
class VerboseLock(object):
@@ -3124,10 +3116,6 @@ class StatusServer(object):
self._tcp_allow_commands = False
self._tcp_access_list = None
- def close_sockets(self):
- self.close_tcp_socket()
- self.close_unix_socket()
-
def close_unix_socket(self):
if self._socket:
self._socket.close()
@@ -4449,23 +4437,6 @@ def core_has_notifications_disabled(event):
return False
-def fetch_contacts_of_group_from_livestatus(group_name):
- try:
- contacts = livestatus.LocalConnection().query_value(
- "GET contactgroups\nFilter: name = %s\nColumns: members" %
group_name)
- if "check-mk-notify" in contacts: # Remove artifical contact used for
rule based notifications
- contacts.remove("check-mk-notify")
- return contacts
-
- except Exception as e:
- logger.exception("Cannot determine contacts of group %s: %s" %
(group_name, e))
- if opt_debug:
- raise
-
- return None # No group match or other failure
-
-
-
#.
# .--Replication---------------------------------------------------------.
# | ____ _ _ _ _ |