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…
Module: check_mk
Branch: master
Commit: 4ab277b3d01f3909a2b198f3b9c862026c500a8a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ab277b3d01f39…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Jan 28 14:32:57 2016 +0100
#2940 FIX dell_om_disks: non-raid state is no longer treated as a critical problem
Disks that have been configured to not be used in a raid are apparently reported as state non-raid.
This was reported as a critical issue although it's probably intentional.
---
.werks/2940 | 10 ++++++++++
ChangeLog | 1 +
checks/dell_om_disks | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/2940 b/.werks/2940
new file mode 100644
index 0000000..bb3d3c9
--- /dev/null
+++ b/.werks/2940
@@ -0,0 +1,10 @@
+Title: dell_om_disks: non-raid state is no longer treated as a critical problem
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453987797
+Class: fix
+
+Disks that have been configured to not be used in a raid are apparently reported as state non-raid.
+This was reported as a critical issue although it's probably intentional.
diff --git a/ChangeLog b/ChangeLog
index 664d640..818fa7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -229,6 +229,7 @@
* 2971 FIX: heartbeat_crm: Is now compatible with more forms of crm_mon output formats
* 2972 FIX: df: Filesystem trends: Outputting less senseless time left in case of nearly 0 growth
* 3034 FIX: cups_queues: Fixed bug when no user name available for a print job
+ * 2940 FIX: dell_om_disks: non-raid state is no longer treated as a critical problem...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/dell_om_disks b/checks/dell_om_disks
index 8de635c..8ac01c1 100644
--- a/checks/dell_om_disks
+++ b/checks/dell_om_disks
@@ -62,6 +62,7 @@ def check_dell_om_disks(item, _no_params, info):
6 : 'Degraded',
7 : 'Recovering',
11 : 'Removed',
+ 13 : 'non-raid',
15 : 'Resynching',
22 : 'Replacing', # FIXME: this one is not defined in the OMSA MIBs
24 : 'Rebuilding',
@@ -93,7 +94,7 @@ def check_dell_om_disks(item, _no_params, info):
if dstate in [ 40, 35, 34, 26, 7, 4]:
state = 1
label = "(!)"
- elif dstate not in [ 3, 1 ]:
+ elif dstate not in [ 3, 1, 13 ]:
state = 2
label = "(!!)"
Module: check_mk
Branch: master
Commit: 9ae1d8576ddd5a05c2ff2e239106b541418e5d86
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ae1d8576ddd5a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jan 28 14:10:24 2016 +0100
#2984 mk_inventory.solaris: improved detection of serial number for solaris_prtdiag plugin
The agent plugin is now able to detect serial numbers with spaces.
---
.werks/2984 | 10 ++++++++++
ChangeLog | 1 +
agents/plugins/mk_inventory.solaris | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2984 b/.werks/2984
new file mode 100644
index 0000000..ab42a6d
--- /dev/null
+++ b/.werks/2984
@@ -0,0 +1,10 @@
+Title: mk_inventory.solaris: improved detection of serial number for solaris_prtdiag plugin
+Level: 1
+Component: inv
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453986550
+Class: feature
+
+The agent plugin is now able to detect serial numbers with spaces.
+
diff --git a/ChangeLog b/ChangeLog
index b4d13df..664d640 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -345,6 +345,7 @@
* 2436 NetApp monitoring: Now able to gather data for inventory...
* 2440 VMware ESX inventory: Now able to display ESX hostsystems and virtualmachines of clusters
* 2889 snmp_extended_info: new inventory function which discovers the model name and serial number...
+ * 2984 mk_inventory.solaris: improved detection of serial number for solaris_prtdiag plugin...
* 2667 FIX: solaris_mem: fix exception in inventory plugin
* 2714 FIX: Fixed visibility of folding arrows by making them dark
* 2439 FIX: solaris_prtdiag: Can now handle Oracle Corporation SUN FIRE X4170 M2 SERVER...
diff --git a/agents/plugins/mk_inventory.solaris b/agents/plugins/mk_inventory.solaris
index eaece65..b6b3d1f 100755
--- a/agents/plugins/mk_inventory.solaris
+++ b/agents/plugins/mk_inventory.solaris
@@ -51,7 +51,7 @@ then
if type sneep >/dev/null 2>&1; then
SN=$(sneep -t serial)
else
- SN=$(smbios -t SMB_TYPE_SYSTEM | grep 'Serial Number:' | awk '{print $3}')
+ SN=$(smbios -t SMB_TYPE_SYSTEM | grep 'Serial Number:' | awk '{print substr($0, index($0,$3))}')
fi
echo "SerialNumber: $SN"
prtdiag -v