Module: check_mk
Branch: master
Commit: 8c04fc962c155aecad47f8153f772704a807f1c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8c04fc962c155a…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Thu Sep 15 10:27:52 2016 +0200
3701 FIX FIX ps.perf graph title for Memory and CPU Usage
Fixed graph titles to show "Usage for all processes".
---
.werks/3701 | 10 ++++++++++
ChangeLog | 1 +
pnp-templates/check_mk-ps.perf.php | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3701 b/.werks/3701
new file mode 100644
index 0000000..d021a69
--- /dev/null
+++ b/.werks/3701
@@ -0,0 +1,10 @@
+Title: FIX ps.perf graph title for Memory and CPU Usage
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1473927852
+Class: fix
+
+Fixed graph titles to show "Usage for all processes".
+
diff --git a/ChangeLog b/ChangeLog
index 6458b89..bd5abe1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -389,6 +389,7 @@
* 3854 FIX: juniper_bgp_state: Fixed service descriptions in some cases...
* 3837 FIX: Fixed empty check if lnx_if info contains additional line...
* 3802 FIX: Fixed excess Check Helper PIPEs when a datasource program runs into a
timeout...
+ * 3701 FIX: FIX ps.perf graph title for Memory and CPU Usage...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/pnp-templates/check_mk-ps.perf.php b/pnp-templates/check_mk-ps.perf.php
index b59113a..3c409f4 100644
--- a/pnp-templates/check_mk-ps.perf.php
+++ b/pnp-templates/check_mk-ps.perf.php
@@ -57,7 +57,7 @@ $def[1] = ""
# 2. Graph: Memory usage
if (isset($RRD["vsz"])) {
- $opt[2] = " --vertical-label \"MB\" -l 0 --title \"Memory Usage per
process\" ";
+ $opt[2] = " --vertical-label \"MB\" -l 0 --title \"Memory Usage for
all Processes\" ";
$def[2] = ""
. "DEF:count=$RRD[count] "
. "DEF:vsz=$RRD[vsz] "
@@ -76,7 +76,7 @@ if (isset($RRD["vsz"])) {
}
if (isset($RRD["pcpu"])) {
- $opt[3] = " --vertical-label \"CPU(%)\" -l 0 -u 100 --title \"CPU
Usage\" ";
+ $opt[3] = " --vertical-label \"CPU(%)\" -l 0 -u 100 --title \"CPU
Usage for all Processes\" ";
$def[3] = ""
. "DEF:pcpu=$RRD[pcpu] "
. "AREA:pcpu#30ff80:\"CPU usage (%) \" "