Module: check_mk
Branch: master
Commit: 1c68ed0f1b0e98d7174aaadc33c1b9c794a09aec
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c68ed0f1b0e98…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 14 11:38:26 2011 +0200
hp_procurve_cpu: rename load to utilization
---
ChangeLog | 1 +
checks/hp_procurve_cpu | 16 +++++++---------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 63246cf..e4ac38b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -85,6 +85,7 @@
using S.M.A.R.T
* mcdata_fcport: new check for ports of MCData FC Switches
* hp_procurve_cpu: add PNP template
+ * hp_procurve_cpu: rename load to utilization, rename service to CPU utilizition
1.1.10:
Core, Setup, etc.:
diff --git a/checks/hp_procurve_cpu b/checks/hp_procurve_cpu
index 40a3541..43267e3 100644
--- a/checks/hp_procurve_cpu
+++ b/checks/hp_procurve_cpu
@@ -24,8 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-# Author: Lars Michelsen <lm(a)mathias-kettner.de>
-
# Relevant SNMP OIDs:
# 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1
@@ -37,20 +35,20 @@ def inventory_hp_procurve_cpu(checkname, info):
def check_hp_procurve_cpu(item, params, info):
if len(info) == 1:
- cpu_load = int(info[0][0])
- if cpu_load >= 0 <= 100:
+ cpu_util = int(info[0][0])
+ if cpu_util >= 0 <= 100:
status = 0
output = ''
- if cpu_load >= params[1]:
+ if cpu_util >= params[1]:
status = 2
output = ' (Above %d%%)' % params[1]
- elif cpu_load >= params[0]:
+ elif cpu_util >= params[0]:
status = 1
output = ' (Above %d%%)' % params[0]
- return (status, '%s - CPU load is %d%% %s' %
- (nagios_state_names[status], cpu_load, output),
- [('load', '%d%%' % cpu_load, params[0], params[1], 0,
100)])
+ return (status, '%s - CPU utilization is %d%% %s' %
+ (nagios_state_names[status], cpu_util, output),
+ [('util', '%d%%' % cpu_util, params[0], params[1], 0,
100)])
return (3, "UNKNOWN - Invalid information in snmp data")