Module: check_mk
Branch: master
Commit: e9009b4afcd1ee11000fdf51e019681a47ab1ee7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9009b4afcd1ee…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 10 17:47:49 2013 +0200
cisco_cpu: added Perf-O-Meter and PNP template
---
ChangeLog | 1 +
pnp-templates/check_mk-cisco_cpu.php | 1 +
web/plugins/perfometer/check_mk.py | 3 ++-
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 55667a7..371f1dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
* services: inventory now also matches against display names of services
* esx_vsphere_hostsystem.multipath: now able to set warn/crit levels
* cpu_netapp: added Perf-O-Meter and PNP template
+ * cisco_cpu: added Perf-O-Meter and PNP template
* FIX: windows_agent: fixed bug in cleanup of open thread handles
* FIX: cups default printer is now monitored again in linux agent
* FIX: host notification email in html format: fixed formating error
diff --git a/pnp-templates/check_mk-cisco_cpu.php b/pnp-templates/check_mk-cisco_cpu.php
new file mode 120000
index 0000000..07c1c09
--- /dev/null
+++ b/pnp-templates/check_mk-cisco_cpu.php
@@ -0,0 +1 @@
+check_mk-h3c_lanswitch_cpu.php
\ No newline at end of file
diff --git a/web/plugins/perfometer/check_mk.py b/web/plugins/perfometer/check_mk.py
index 53f12b7..220b6a1 100644
--- a/web/plugins/perfometer/check_mk.py
+++ b/web/plugins/perfometer/check_mk.py
@@ -395,13 +395,14 @@ perfometers["check_mk-oracle_logswitches"] =
perfometer_oracle_sessions
def perfometer_cpu_utilization(row, check_command, perf_data):
util = float(perf_data[0][1]) # is already percentage
- color = "#cf2"
+ color = "#60f020"
return "%.0f%%" % util, perfometer_linear(util, color)
#perfometer_linear(perc, color)
perfometers["check_mk-h3c_lanswitch_cpu"] = perfometer_cpu_utilization
perfometers["check_mk-winperf_processor.util"] = perfometer_cpu_utilization
perfometers["check_mk-netapp_cpu"] = perfometer_cpu_utilization
+perfometers["check_mk-cisco_cpu"] = perfometer_cpu_utilization
def perfometer_ps_perf(row, check_command, perf_data):
perf_dict = dict([(p[0], float(p[1])) for p in perf_data])