Module: check_mk
Branch: master
Commit: 930565d7184f69797c7ca221e6d77b1424792b27
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=930565d7184f69…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Apr 3 15:24:11 2019 +0200
mk_mongodb: refactor III: create docstring
CMK-1885
Change-Id: Iabbd92bbe6aa428e86b9e65b952481a055ac4759
---
agents/plugins/mk_mongodb | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/agents/plugins/mk_mongodb b/agents/plugins/mk_mongodb
index 35e22b2..99cbd43 100755
--- a/agents/plugins/mk_mongodb
+++ b/agents/plugins/mk_mongodb
@@ -1,21 +1,21 @@
#!/usr/bin/python
-# Monitor MongoDB on Linux
-
+"""Monitor MongoDB on Linux
+
+This agent plugin creates various sections out of the MongoDB server status information.
+Important: 1) If MongoDB runs as single instance the agent data is assigned
+ to the host same host where the plugin resides.
+
+ 2) If MongoDB is deployed as replica set the agent data is piggybacked
+ to a different hostname, name after the replica set name.
+ You have to create a new host in the monitoring system matching the
+ replica set name, or use the piggyback translation rule to modify the
+ hostname according to your needs.
+"""
import os
import pprint
import sys
import time
-# This agent plugin creates various sections out of the MongoDB server status
information.
-# Important: 1) If MongoDB runs as single instance the agent data is assigned
-# to the host same host where the plugin resides.
-#
-# 2) If MongoDB is deployed as replica set the agent data is piggybacked
-# to a different hostname, name after the replica set name.
-# You have to create a new host in the monitoring system matching the
-# replica set name, or use the piggyback translation rule to modify the
-# hostname according to your needs.
-
try:
import pymongo
except ImportError: