Module: check_mk
Branch: master
Commit: 733ae3d0548daa49b37dd9b272df1ece06860968
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=733ae3d0548daa…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Dec 10 13:43:47 2013 +0100
3ware_units: The verifying state is now handled as ok
The devices do a regular verifying of the raid sets. The check now not longer handle this
as Warning.
Thanx for the tip to Rober Stander from Heinlein Support GmbH.
---
.werks/106 | 9 +++++++++
ChangeLog | 1 +
checkman/3ware_units | 2 +-
checks/3ware_units | 4 ++--
4 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/106 b/.werks/106
new file mode 100644
index 0000000..19523b7
--- /dev/null
+++ b/.werks/106
@@ -0,0 +1,9 @@
+Title: 3ware_units: The verifying state is now handled as ok
+Level: 1
+Component: checks
+Version: 1.2.3i8
+Date: 1386679206
+Class: feature
+
+The devices do a regular verifying of the raid sets. The check now not longer handle this
as Warning.
+Thanx for the tip to Rober Stander from Heinlein Support GmbH.
diff --git a/ChangeLog b/ChangeLog
index e68fff2..5e4a1a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* 0306 esx_vsphere_counters: added missing ramdisk levels sfcbtickets
* 0073 moxa_iologik_register: new check to monitor moxa e2000 series registers
* 0105 apc_humidity: New Check for humidity levels on APC Devices
+ * 0106 3ware_units: The verifying state is now handled as ok...
* 0103 FIX: services: Fixed bug with service inventory defined in main.mk...
* 0299 FIX: borcade_mlx_fan: Prettified output, handling "other" state now
* 0300 FIX: cisco_fru_power: Trying not to inventorize not plugged in FRUs...
diff --git a/checkman/3ware_units b/checkman/3ware_units
index 37b3e11..90f11f9 100644
--- a/checkman/3ware_units
+++ b/checkman/3ware_units
@@ -14,4 +14,4 @@ item:
inventory:
All logical units are automatically inventorized. All states other than
- {OK} are considere critical.
+ {OK} or {VERIFYING} are considere critical.
diff --git a/checks/3ware_units b/checks/3ware_units
index bec04e5..012bcaa 100644
--- a/checks/3ware_units
+++ b/checks/3ware_units
@@ -66,9 +66,9 @@ def check_3ware_units(item, _no_params, info):
infotext = "%s (type: %s, size: %sGB%s)" % (status, unit_type,
size, complete_txt)
- if status == "OK":
+ if status in [ "OK", "VERIFYING" ]:
return (0, "unit status is " + infotext)
- elif status in [ "INITIALIZING", "VERIFY-PAUSED",
"VERIFYING", "REBUILDING" ]:
+ elif status in [ "INITIALIZING", "VERIFY-PAUSED",
"REBUILDING" ]:
return (1, "unit status is " + infotext)
else:
return (2, "unit status is " + infotext)