Module: check_mk
Branch: master
Commit: 5a32509c7b56422ea1a5c07227ee7ca9a0b46808
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a32509c7b5642…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Aug 17 13:38:38 2016 +0200
3832 diskstat: added new device bcache
---
.werks/3832 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.linux | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3832 b/.werks/3832
new file mode 100644
index 0000000..6edbbd0
--- /dev/null
+++ b/.werks/3832
@@ -0,0 +1,9 @@
+Title: diskstat: added new device bcache
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1471433801
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 902662b..9799019 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -126,6 +126,7 @@
* 3560 emcvnx_disks: now able to configure states for hard read/write errors and when
enclosure rebuilds
* 3783 netapp_api_qtree_quota: new check to monitor disk usage of qtrees
* 3784 agent_netapp / 7mode: now also reports snapsvaults for the default filer...
+ * 3832 diskstat: added new device bcache
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative
to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index f6b81c8..82ef77a 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -395,7 +395,7 @@ fi
# Performancecounter Platten
echo '<<<diskstat>>>'
date +%s
-egrep '
(x?[shv]d[a-z]*|cciss/c[0-9]+d[0-9]+|emcpower[a-z]+|dm-[0-9]+|VxVM.*|mmcblk.*|dasd[a-z]*)
' < /proc/diskstats
+egrep '
(x?[shv]d[a-z]*|cciss/c[0-9]+d[0-9]+|emcpower[a-z]+|dm-[0-9]+|VxVM.*|mmcblk.*|dasd[a-z]*|bcache[0-9]+)
' < /proc/diskstats
if type dmsetup >/dev/null ; then
echo '[dmsetup_info]'
dmsetup info -c --noheadings --separator ' ' -o name,devno,vg_name,lv_name