Module: check_mk
Branch: master
Commit: 763c48d2c8edf26faa45f4f03ed4f12d623b2e85
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=763c48d2c8edf2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 22 16:47:16 2013 +0200
Fixed typo in varnames
---
checks/hp_proliant | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/hp_proliant b/checks/hp_proliant
index 82eefec..450a53d 100644
--- a/checks/hp_proliant
+++ b/checks/hp_proliant
@@ -31,16 +31,16 @@
# '.1.3.6.1.4.1.232.11.2.14.1.1.5.0' => cpqHoFwVerVersion
# '.1.3.6.1.4.1.232.11.1.3.0' => cpqHoMibCondition
-hp_proliant_generel_status_map = { 1: 'Unknown', 2: 'Ok',
3: 'Degraded', 4: 'Failed' }
-hp_proliant_generel_status2nagios_map = { 'Unknown': 0, 'Ok':
0, 'Degraded': 1, 'Failed': 2, }
+hp_proliant_general_status_map = { 1: 'Unknown', 2: 'Ok',
3: 'Degraded', 4: 'Failed' }
+hp_proliant_general_status2nagios_map = { 'Unknown': 0, 'Ok':
0, 'Degraded': 1, 'Failed': 2, }
def inventory_proliant_general(info):
if len(info) > 0 and len(info[0]) > 1:
return [ (None, None) ]
def check_proliant_general(item, no_params, info):
- snmp_state = hp_proliant_generel_status_map[int(info[0][0])]
- status = hp_proliant_generel_status2nagios_map[snmp_state]
+ snmp_state = hp_proliant_general_status_map[int(info[0][0])]
+ status = hp_proliant_general_status2nagios_map[snmp_state]
return (status, "General Status is %s (Firmware: %s, S/N: %s)" %
(snmp_state, info[0][1], info[0][2]))