Skip to content
Permalink
Browse files

7417 FIX exs_vsphere_datastores: reintroduce old perfometer definitions

In older CheckMK versions the perfometers of the check
esx_vsphere_datastores used to indicate the filesystem size and
uncommitted size. The corresponding segments are now shown again
in the perfometer.

Change-Id: Ic944eba254c956e18231fb51ed54c35ba9dd6693
  • Loading branch information...
7omb committed May 15, 2019
1 parent ee241a3 commit b89db3d9ae47a74ea70e35064afea1dc4acd95e5
Showing with 63 additions and 0 deletions.
  1. +14 −0 .werks/7417
  2. +49 −0 cmk/gui/plugins/metrics/check_mk.py
@@ -0,0 +1,14 @@
Title: exs_vsphere_datastores: reintroduce old perfometer definitions
Level: 1
Component: checks
Class: fix
Compatible: compat
Edition: cee
State: unknown
Version: 1.6.0i1
Date: 1557911760

In older CheckMK versions the perfometers of the check
esx_vsphere_datastores used to indicate the filesystem size and
uncommitted size. The corresponding segments are now shown again
in the perfometer.
@@ -1471,6 +1471,18 @@ def register_assert_metrics():
"color": "#ff8000",
}

metric_info["uncommitted"] = {
"title": _("Uncommitted"),
"unit": "bytes",
"color": "16/a",
}

metric_info["overprovisioned"] = {
"title": _("Overprovisioned"),
"unit": "bytes",
"color": "24/a",
}

metric_info["temp"] = {
"title": _("Temperature"),
"unit": "c",
@@ -6423,6 +6435,12 @@ def register_fireye_metrics():
"trend_hoursleft": {
"scale": 3600,
},
"uncommitted": {
"scale": MB,
},
"overprovisioned": {
"scale": MB,
},
}

check_metrics["check_mk-df"] = df_translation
@@ -8241,6 +8259,37 @@ def register_fireye_metrics():
"label": ("fs_used(%)", "%"),
})

# Filesystem check without overcommittment
perfometer_info.append({
"type": "linear",
"condition": "fs_used,uncommitted,+,fs_size,<",
"segments": [
"fs_used",
"uncommitted",
"fs_size,fs_used,-,uncommitted,-#e3fff9", # free
"0.1#559090", # fs_size marker
],
"total": "fs_size",
"label": ("fs_used(%)", "%"),
})

# Filesystem check with overcommittment
perfometer_info.append({
"type": "linear",
"condition": "fs_used,uncommitted,+,fs_size,>=",
"segments": [
"fs_used",
"fs_size,fs_used,-#e3fff9", # free
"0.1#559090", # fs_size marker
"overprovisioned,fs_size,-#ffa000", # overcommittment
],
"total": "overprovisioned",
"label": (
"fs_used,fs_used,uncommitted,+,/,100,*", # percent used scaled
"%",
),
})

# Filesystem without over-provisioning
perfometer_info.append({
"type": "linear",

0 comments on commit b89db3d

Please sign in to comment.
You can’t perform that action at this time.