Module: check_mk
Branch: master
Commit: d0b1ff42b301c751f252d296b7a48ef11f9359f8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d0b1ff42b301c7…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Jan 26 14:13:56 2016 +0100
Added comment
---
web/plugins/metrics/check_mk.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index b257b9a..7563d30 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -3546,6 +3546,9 @@ check_metrics["check_mk-ps.perf"] = ps_translation
# | Definition of Perf-O-Meters |
# '----------------------------------------------------------------------'
+# If multiple Perf-O-Meters apply, the first applicable Perf-O-Meter in the list will
+# be the one appearing in the GUI.
+
# Types of Perf-O-Meters:
# linear -> multiple values added from left to right
# logarithmic -> one value in a logarithmic scale
Module: check_mk
Branch: master
Commit: bf2a71b52756c857fbca6046853c8e82205f691c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bf2a71b52756c8…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Jan 26 14:05:42 2016 +0100
Added comment
---
web/plugins/metrics/check_mk.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index fdea84b..b257b9a 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -4508,6 +4508,10 @@ perfometer_info.append({
# | Definitions of time series graphs |
# '----------------------------------------------------------------------'
+# Beware: The order of the list elements of graph_info is actually important.
+# It determines the order of graphs of a service, which in turn is used by
+# the report definitions to determine which graph to include.
+
# Order of metrics in graph definitions important if you use only 'area':
# The first one must be the bigger one, then descending.
# Example: ('tablespace_size', 'area'),
Module: check_mk
Branch: master
Commit: 85f5a7311835bb777d87fd9b157be618ccfb1e91
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85f5a7311835bb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jan 26 11:59:39 2016 +0100
Make scan-build happy, a bit unclear if this is a real issue.
---
livestatus/src/PerfdataAggregator.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/livestatus/src/PerfdataAggregator.cc b/livestatus/src/PerfdataAggregator.cc
index 82d16f7..589b7bd 100644
--- a/livestatus/src/PerfdataAggregator.cc
+++ b/livestatus/src/PerfdataAggregator.cc
@@ -140,6 +140,10 @@ void PerfdataAggregator::output(Query *q)
else
value = sqrt((it->second._sumq - (it->second._aggr * it->second._aggr) / it->second._count)/(it->second._count - 1));
break;
+ default:
+ value = 0; // should never happen, but the real problem is that
+ // _operation should beetter be a scoped enumeration.
+ break;
}
snprintf(format, sizeof(format), "%s=%.8f", it->first.c_str(), value);
if (it != _aggr.begin())
Module: check_mk
Branch: master
Commit: a28662a74b3e58175ebcee978f430939078af8b0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a28662a74b3e58…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 26 11:17:40 2016 +0100
#2832 netscaler_vserver: improved check output for unknown protocols
This check now also shows the internal code number for the service
type in the check output, e.g. serviceUnknown(50), in case it is not
in the well known services list.
---
.werks/2832 | 12 ++++++++++++
ChangeLog | 1 +
checks/netscaler_vserver | 4 ++--
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/2832 b/.werks/2832
new file mode 100644
index 0000000..589249b
--- /dev/null
+++ b/.werks/2832
@@ -0,0 +1,12 @@
+Title: netscaler_vserver: improved check output for unknown protocols
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453803324
+Class: feature
+
+This check now also shows the internal code number for the service
+type in the check output, e.g. serviceUnknown(50), in case it is not
+in the well known services list.
+
diff --git a/ChangeLog b/ChangeLog
index 6565f0b..44ea1aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,7 @@
* 2937 mrpe: check now supports service descriptions using percent-encoded characters...
NOTE: Please refer to the migration notes!
* 2938 websphere_mq_channels: check outcome based on channel state is now configurable...
+ * 2832 netscaler_vserver: improved check output for unknown protocols...
* 2660 FIX: fixed windows agent using the wrong working directory...
* 2664 FIX: ps: Speedup in situation with many matching processes...
* 2661 FIX: windows agent: fixed incomplete process list...
diff --git a/checks/netscaler_vserver b/checks/netscaler_vserver
index 1f8ea7c..14b5613 100644
--- a/checks/netscaler_vserver
+++ b/checks/netscaler_vserver
@@ -101,8 +101,8 @@ def check_netscaler_vserver(item, _no_params, info):
health_state = 1
yield health_state, "Health at: %s%%" % health_perc, [("health_perc", health_perc, None, None, 0, 100)]
- yield 0, "Type: %s" % netscaler_vserver_entitytypes.get(svr_entitytype , "unknown")
- yield 0, "Protocol: %s" % netscaler_vserver_types.get(svr_type, "serviceUnknown")
+ yield 0, "Type: %s" % netscaler_vserver_entitytypes.get(svr_entitytype , "unknown (%s)" % svr_entitytype)
+ yield 0, "Protocol: %s" % netscaler_vserver_types.get(svr_type, "serviceUnknown (%s)" % svr_type)
yield 0, "Socket: %s:%s" % (ip, port)
check_info["netscaler_vserver"] = {
Module: check_mk
Branch: master
Commit: afcfeedf9ac67360eab533dc09e57d726681d416
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=afcfeedf9ac673…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Jan 26 08:39:13 2016 +0100
#2939 FIX winperf_phydisk: fixed permanent stall state if windows reports several disks with the same drive letter
It's not completely clear what makes windows report statistics for multiple disks with the same
letter but it was observed to happen in the wild. Most probably it is related to dynamic disks where
one drive spans multiple physikal disks.
---
.werks/2939 | 11 +++++++++++
ChangeLog | 1 +
checks/winperf_phydisk | 10 +++++++++-
3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/.werks/2939 b/.werks/2939
new file mode 100644
index 0000000..6a4e07a
--- /dev/null
+++ b/.werks/2939
@@ -0,0 +1,11 @@
+Title: winperf_phydisk: fixed permanent stall state if windows reports several disks with the same drive letter
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453793706
+Class: fix
+
+It's not completely clear what makes windows report statistics for multiple disks with the same
+letter but it was observed to happen in the wild. Most probably it is related to dynamic disks where
+one drive spans multiple physikal disks.
diff --git a/ChangeLog b/ChangeLog
index 7b49a8c..6565f0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -214,6 +214,7 @@
* 2953 FIX: netextreme_psu_in: Fixed discovery of Power Supply Input checks
* 2954 FIX: netextreme_temp: Fixed temperature checking
* 2955 FIX: cpu.loads: Fixed monitoring on some AIX systems
+ * 2939 FIX: winperf_phydisk: fixed permanent stall state if windows reports several disks with the same drive letter...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/winperf_phydisk b/checks/winperf_phydisk
index 91636e0..2c805ad 100644
--- a/checks/winperf_phydisk
+++ b/checks/winperf_phydisk
@@ -109,7 +109,15 @@ def winperf_phydisk_convert(info):
if current_node != "":
entries.extend(finalize_block(current_node))
current_node = line[0]
- current_disks = [ d.split('_')[-1] for d in line[3:-1] ]
+ current_disks = []
+ for disk_id in line[3:-1]:
+ disk_id = disk_id.split('_')
+
+ if disk_id[-1] not in current_disks:
+ disk_id = disk_id[-1]
+ else:
+ disk_id = "%s_%s" % (disk_id[-1], disk_id[0])
+ current_disks.append(disk_id)
elif line[1] == '-14':
current_disk_read_bytes = map(int, line[2:-2])
elif line[1] == '-12':