Module: check_mk
Branch: master
Commit: 77ec204e0f9af130032358fd2272a668ad3c35e0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77ec204e0f9af1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 26 17:52:40 2016 +0200
3438 FIX mk_mongodb: Fixed agent plugin handling when pymongo can not be imported
---
.werks/3438 | 10 ++++++++++
ChangeLog | 1 +
agents/plugins/mk_mongodb | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3438 b/.werks/3438
new file mode 100644
index 0000000..374ab85
--- /dev/null
+++ b/.werks/3438
@@ -0,0 +1,10 @@
+Title: mk_mongodb: Fixed agent plugin handling when pymongo can not be imported
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461685910
+
+
diff --git a/ChangeLog b/ChangeLog
index d6f5372..ce16822 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -189,6 +189,7 @@
* 3425 FIX: Fixed extra section handling if no related check plugin exists
* 3465 FIX: df: Fix displayed vertical range of graph of all filesystem checks...
* 3427 FIX: mssql_counters.sqlstats: fixed rate calculation
+ * 3438 FIX: mk_mongodb: Fixed agent plugin handling when pymongo can not be imported
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/plugins/mk_mongodb b/agents/plugins/mk_mongodb
index a61e8ad..0a70d0a 100755
--- a/agents/plugins/mk_mongodb
+++ b/agents/plugins/mk_mongodb
@@ -20,7 +20,7 @@ import datetime
try:
import pymongo
except ImportError, e:
- sys.stderr("unable to import pymongo")
+ sys.stderr.write("ERROR: Unable to import pymongo module\n")
sys.exit(2)
# TODO: might be implemented in the future..