Module: check_mk
Branch: master
Commit: 48116fdf06d1b162c4c6aaebb8f4bf031a34bb4b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48116fdf06d1b1…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jan 28 17:09:50 2016 +0100
#2985 MongoDB: Introduced agent plugin and some checks
After installing the mk_mongodb agent plugin on the target system, the following new
checks are available:
<table>
<tr><th>Check</th><th>Description</th></tr>
<tr> <td>mongodb_asserts</td><td>Monitors the rate of various
assert types<td> </tr>
<tr> <td>mongodb_connections</td><td>Monitors the number of
connections</td> </tr>
<tr> <td>mongodb_collections</td><td>Monitors the collection
size</td> </tr>
<tr> <td>mongodb_counters</td><td>Monitors the number of MongoDB
operations</td> </tr>
<tr> <td>mongodb_flushing</td><td>Monitors the flush
time</td> </tr>
<tr> <td>mongodb_locks</td><td>Monitors the number of
locks</td> </tr>
<tr> <td>mongodb_mem</td><td>Monitors the resident, virtual and
mapped memory</td> </tr>
<tr> <td>mongodb_replica</td><td>Show replica information
</td> </tr>
<tr> <td>mongodb_instance</td><td>Shows instance
information</td> </tr>
</table>
Note:
If the MongoDB is running as a replica set most of the agent sections are sent to
a piggyback host named after the replication set. You can find the replica name
in the agent output under
<<<<{replicaname}&gr;&gr;&gr;&gr;.
So you need to create a host named {replicaname} and execute a service
discovery.<br>
Reason:<br>
A MongoDB replica set consists of n-Hosts. All of these hosts have the mk_mongodb plugin
installed.
There is a primary host in this replica set which sends the complete plugin information.
The secondary and arbiter hosts will only send a subset of this data.
Since the primary host might change over time, we cannot put all discovered services on
the current primary host. If the host changes to secondary mode later on, all services
would be gone.
---
.werks/2985 | 36 +++++
ChangeLog | 1 +
agents/plugins/mk_mongodb | 203 ++++++++++++++++++++++++++++
checkman/mongodb_asserts | 19 +++
checkman/mongodb_collections | 20 +++
checkman/mongodb_counters | 23 ++++
checkman/mongodb_flushing | 22 +++
checkman/mongodb_instance | 11 ++
checkman/mongodb_locks | 19 +++
checkman/mongodb_mem | 21 +++
checkman/mongodb_replica | 15 +++
checks/mongodb_asserts | 63 +++++++++
checks/mongodb_collections | 77 +++++++++++
checks/mongodb_connections | 82 ++++++++++++
checks/mongodb_counters | 74 +++++++++++
checks/mongodb_flushing | 74 +++++++++++
checks/mongodb_instance | 44 ++++++
checks/mongodb_locks | 59 ++++++++
checks/mongodb_mem | 73 ++++++++++
checks/mongodb_replica | 45 +++++++
modules/catalog.py | 1 +
web/plugins/metrics/check_mk.py | 21 ++-
web/plugins/wato/check_parameters.py | 244 ++++++++++++++++++++++++++--------
23 files changed, 1192 insertions(+), 55 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=48116fdf06…