Module: check_mk
Branch: master
Commit: 68c731c9f7cfa2b9d62332669514d9caeff95204
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68c731c9f7cfa2…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Tue Oct 1 17:23:07 2013 +0200
new check manpages for UPS devices
---
checkman/emerson_stat | 39 +++++++++++++++++++++++++++++++++++++++
checkman/emerson_temp | 31 +++++++++++++++++++++++++++++++
checkman/liebert_bat_temp | 25 +++++++++++++++++++++++++
checkman/ups_test | 9 +++++----
checks/emerson_stat | 4 ++--
5 files changed, 102 insertions(+), 6 deletions(-)
diff --git a/checkman/emerson_stat b/checkman/emerson_stat
new file mode 100644
index 0000000..da7c3fb
--- /dev/null
+++ b/checkman/emerson_stat
@@ -0,0 +1,39 @@
+title: Emerson UPS: status
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the status OID of Emerson UPS devices which have the emerson energy
+ systems power MIB. They must have a system desciption OID
+ starting with "Emerson Network Power".
+ In case the device does not have a system description OID, it needs to be listed in
+ the configuration variable {snmp_without_sys_descr} to be inventorized.
+
+ The following states of the device are known and lead to a nagios
+ state of {crit}:
+ (5) "minor - MA"
+ (6) "major"
+ (10) "disabled"
+ The following device states are known and lead to the nagios state {warn}:
+ (1) "unknown"
+ (3) "observation"
+ (4) "warning - A3"
+ (7) "unmanaged"
+ (8) "restricted""
+ (9) "testing"
+
+
+examples:
+ # host does not have a system description OID
+ snmp_without_sys_descr = [
+ ( [], ['liebert-cabinet'] ),
+ ] + snmp_without_sys_descr
+
+
+inventory:
+ The inventory process checks if the device has a system description OIDs
(.1.3.6.1.2.1.1.2.0)
+ and if the name of this OID begins with "Emerson Network Power". In case the
device does
+ not have a system description OID it needs to be listed in the configuration variable
+ {snmp_without_sys_descr} to be inventorized
+
diff --git a/checkman/emerson_temp b/checkman/emerson_temp
new file mode 100644
index 0000000..06fdc7f
--- /dev/null
+++ b/checkman/emerson_temp
@@ -0,0 +1,31 @@
+title: Emerson UPS Device: Temperature sensor
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the state of temperature sensors on Emerson UPS devices which
+ have the Emerson Energy Systems Power MIB. They must have a system desciption OID
+ starting with "Emerson Network Power".
+ In case the device does not have a system description OID, it needs to be listed in
+ the configuration variable {snmp_without_sys_descr} to be inventorized.
+
+
+item:
+ The index of the sensors found during inventory numbered starting from 0.
+
+perfdata:
+ The actual temperature in degrees celcius
+
+inventory:
+ One check for each sensor is created by the inventory
+
+[parameters]
+parameters (tuple): A pair of numbers for warning and critical level
+
+ warning (int): The temperature that triggers an WARNING state
+
+ critical (int): The temperature that triggers an CRITICAL state
+
+[configuration]
+emerson_temp_default (tuple): Default warning and critical level
diff --git a/checkman/liebert_bat_temp b/checkman/liebert_bat_temp
new file mode 100644
index 0000000..2680c2f
--- /dev/null
+++ b/checkman/liebert_bat_temp
@@ -0,0 +1,25 @@
+title: Liebert UPS Device: Temperature sensor
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the state of the temperature sensor on Liebert UPS devices.
+ {warn} and {crit} levels can be defined for the temperature.
+
+perfdata:
+ The actual temperature in degrees celcius
+
+inventory:
+ The inventory works for all devices which have a '.1.3.6.1.4.1.476.1.42' in
their
+ system description OID. No items are expected.
+
+[parameters]
+parameters (tuple): A pair of numbers for warning and critical level
+
+ warning (int): The temperature that triggers an WARNING state
+
+ critical (int): The temperature that triggers an CRITICAL state
+
+[configuration]
+liebert_bat_temp_default (tuple): Default warning and critical level
diff --git a/checkman/ups_test b/checkman/ups_test
index 9d1ef53..78f0de3 100644
--- a/checkman/ups_test
+++ b/checkman/ups_test
@@ -1,10 +1,10 @@
-title: UPS self test
+title: Generic UPS Device: self test
agents: snmp
catalog: hw/power
license: GPL
distribution: check_mk
description:
- This check monitors parameters related to the self test of UPS devices: The result of
the
+ This check monitors parameters related to the self test of UPS devices: the result of
the
last self test and the last date of the self test run. The check becomes {CRIT} if the
test
result is {"doneError"} or {"aborted"}, and {WARN} if the result is
{"doneWarning"} or
{"noTestsInitiated"}. It also has a {WARN} or {CRIT} state if the date of the
last self
@@ -15,8 +15,9 @@ examples:
ups_test_default = ( 5, 10 )
inventory:
- The inventory process checks if the device has a system description OIDs
(.1.3.6.1.2.1.1.2.0)
- and if the name of this OID is known to the test. If this is true the system is
inventorized.
+ The inventory process checks if the device has a system description OIDs
+ (.1.3.6.1.2.1.1.2.0) and if the name of this OID is known to the test. If
+ this is true the system is inventorized.
[parameters]
parameters(tuple): parameters is a tuple of two values
diff --git a/checks/emerson_stat b/checks/emerson_stat
index de33694..f6161f3 100644
--- a/checks/emerson_stat
+++ b/checks/emerson_stat
@@ -50,7 +50,7 @@
# TESTING(9),
# DISABLED(10) }
-# the mib is the NetSure_ESNA.mib, which we have received from directly
+# the mib is the NetSure_ESNA.mib, which we have received directly
# from a customer, it is named "Emerson Energy Systems (EES) Power MIB"
@@ -64,7 +64,7 @@ def check_emerson_stat(item, params, info):
if info:
warn, crit = params # unused
status_text = { 1:"unknown", 2:"normal",
3:"observation", 4: "warning - A3",
- 5: "minar - MA", 6: "major - CA", 7:
"unmanaged", 8: "restricted",
+ 5: "minor - MA", 6: "major - CA", 7:
"unmanaged", 8: "restricted",
9: "testing", 10: "disabled" }
status = saveint(info[0][0])
infotext = "Status: " + status_text.get(status)