[checkmk-commits] Check_MK Git: check_mk: #1937 cpu.loads: performance graph now displays number of CPUs

Andreas Boesl ab at mathias-kettner.de
Fri Feb 6 14:09:17 CET 2015


Module: check_mk
Branch: master
Commit: 7a83b2d8d136ed5d708a219c9cdf62f105193f4c
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a83b2d8d136ed5d708a219c9cdf62f105193f4c

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Fri Feb  6 14:09:14 2015 +0100

#1937 cpu.loads: performance graph now displays number of CPUs

---

 .werks/1937                          |    9 +++++++++
 ChangeLog                            |    1 +
 pnp-templates/check_mk-cpu.loads.php |    4 ++++
 3 files changed, 14 insertions(+)

diff --git a/.werks/1937 b/.werks/1937
new file mode 100644
index 0000000..99cea39
--- /dev/null
+++ b/.werks/1937
@@ -0,0 +1,9 @@
+Title: cpu.loads: performance graph now displays number of CPUs
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i1
+Date: 1423228119
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index fcfb4cb..15c1368 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -159,6 +159,7 @@
     * 1815 Dashboard: Sidebar snapins can now be added as dashlets to dashboards...
     * 1973 Added intelligent host and service type icons to default views...
     * 1979 Relative timestamps display warnings when they should be in future but are in past
+    * 1937 cpu.loads: performance graph now displays number of CPUs
     * 1781 FIX: Fix broken grouping by host/service group in availability
     * 1783 FIX: Finish the view "History of Scheduled Downtimes"...
     * 1206 FIX: Hostname not longer shown as column in host views
diff --git a/pnp-templates/check_mk-cpu.loads.php b/pnp-templates/check_mk-cpu.loads.php
index 659724d..a52ba70 100644
--- a/pnp-templates/check_mk-cpu.loads.php
+++ b/pnp-templates/check_mk-cpu.loads.php
@@ -58,6 +58,10 @@ if ($WARN[1]) {
          . "";
 }
 
+if ($MAX[1]) {
+    $def[1] .= "COMMENT:\" Number of CPUs $MAX[1]\" ";
+}
+
 if (isset($RRD["predict_load15"])) {
     $def[1] .= ""
          . "DEF:predict=$RRD[predict_load15] "



More information about the checkmk-commits mailing list