Module: check_mk
Branch: master
Commit: 3521f5e79465dab0c62663b87d9267bbae9e713f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3521f5e79465da…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Nov 21 15:54:19 2013 +0100
Cleaned up position of subprocess module
---
modules/check_mk.py | 1 -
modules/check_mk_base.py | 2 +-
modules/snmp.py | 2 ++
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 019b829..331e462 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3417,7 +3417,6 @@ def manpage_display_header(cat):
return " -> ".join([manpage_catalog_titles.get(e,e) for e in cat ])
def run_dialog(args):
- import subprocess
env = {
"TERM": os.getenv("TERM", "linux"),
"LANG": "de_DE.UTF-8"
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 74a2c09..a1a5f60 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import socket, os, sys, time, re, signal, math, tempfile, subprocess
+import socket, os, sys, time, re, signal, math, tempfile
# Python 2.3 does not have 'set' in normal namespace.
# But it can be imported from 'sets'
diff --git a/modules/snmp.py b/modules/snmp.py
index 5f3a5f7..b44890d 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -26,6 +26,8 @@
# This module is needed only for SNMP based checks
+import subprocess
+
OID_END = 0
OID_STRING = -1
OID_BIN = -2