Module: check_mk
Branch: master
Commit: bbc7e886272fc3b29f5bbe85bae3505ccf352565
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bbc7e886272fc3…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Apr 30 11:01:53 2012 +0200
Added check for HP Proliant Server
---
checks/hp_proliant | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/checks/hp_proliant b/checks/hp_proliant
new file mode 100644
index 0000000..241d2df
--- /dev/null
+++ b/checks/hp_proliant
@@ -0,0 +1,51 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+# Author: Bastian Kuhn <bk(a)mathias-kettner.de>
+
+# General Status:
+# '.1.3.6.1.4.1.232.2.2.2.1.0' => Serial Number of Server
+# '.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: 'Other', 2: 'Ok', 3: 'Degraded', 4: 'Failed' }
+hp_proliant_generel_status2nagios_map = { 'Other': 2, '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_status_map[int(info[0][0])]
+ status = hp_proliant_status2nagios_map[snmp_state]
+ return (status, "%s - General Status is %s (Firmware: %s, S/N: %s)" %
+ (nagios_state_names[status], snmp_state, info[0][1], info[0][2]))
+
+
+check_info['hp_proliant'] = (check_proliant_general, "General Status", 0, inventory_proliant_general)
+snmp_info['hp_proliant'] = ( ".1.3.6.1.4.1.232", [ "11.1.3.0", "11.2.14.1.1.5.0", "2.2.2.1.0" ] )
+snmp_scan_functions['hp_proliant'] = \
+ lambda oid: "8072.3.2.10" in oid(".1.3.6.1.2.1.1.2.0")
Module: check_mk
Branch: master
Commit: 60b8a37e22025017d282be1acc7f1f89c33ed6d2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60b8a37e220250…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Mon Apr 30 10:50:36 2012 +0200
Fix typo
---
web/plugins/sidebar/shipped.py | 2 +-
web/plugins/wato/check_mk_configuration.py | 2 +-
web/plugins/wato/check_parameters.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 6c12c36..4cf53e0 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -766,7 +766,7 @@ def ajax_speedometer():
# Recompute the scheduled_rate only if it is not known (first call)
# or if one of the sites has been restarted. The computed value cannot
# change during the monitoring since it just reflects the configuration.
- # That way we save CPU ressources since the computation of the
+ # That way we save CPU resources since the computation of the
# scheduled checks rate needs to loop over all hosts and services.
if last_program_start != program_start:
scheduled_rate = 0.0
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 32c16b3..61a5d93 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -860,7 +860,7 @@ register_rule(group,
"in order to support as many devices as possible. Please use this ruleset in order "
"to configure SNMP v2c for as many hosts as possible. That version has two advantages: "
"it supports 64 bit counters, which avoids problems with wrapping counters at too "
- "much traffic. And it support bulk walk, which saves much CPU and network ressources. "
+ "much traffic. And it supports bulk walk, which saves much CPU and network resources. "
"Please be aware, however, that there are some broken devices out there, that support "
"bulk walk but behave very bad when it is used. When you want to enable v2c while not using "
"bulk walk, please use the rule set snmpv2c_hosts instead."))
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 51bafe8..9cbec01 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -34,7 +34,7 @@ group = "checkparams"
subgroup_networking = _("Networking")
subgroup_windows = _("Windows")
subgroup_storage = _("Storage, Filesystems and Files")
-subgroup_cpumem = _("Memory, CPU, Kernel ressources")
+subgroup_cpumem = _("Memory, CPU, Kernel resources")
subgroup_time = _("Time synchronization")
subgroup_printing = _("Printers")
subgroup_environment = _("Temperature, Humidity, etc.")