improved manpage
Message-ID: <52d7f559.kiD0k3pzIja327n3%bs(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: e8b8e57bf964d90503a0ea030dadecffceef9ce9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e8b8e57bf964d9…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Thu Jan 16 16:05:56 2014 +0100
hitachi_hnas_span: fixed logic error, improved manpage
---
checkman/hitachi_hnas_span | 8 ++++----
checks/hitachi_hnas_span | 4 +++-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/checkman/hitachi_hnas_span b/checkman/hitachi_hnas_span
index fad2362..08643de 100644
--- a/checkman/hitachi_hnas_span
+++ b/checkman/hitachi_hnas_span
@@ -13,8 +13,8 @@ item:
The ID of a Span plus it's label, separated by a space, e. g. 3 SP_91
perfdata:
- Three values: The first value is the used space of the filesystem
- in MB. Also the minimum (0 MB), maximum (size of the filesystem) and the
+ Three values: The first value is the used space of the span
+ in MB. Also the minimum (0 MB), maximum (size of the span) and the
warning and critical levels in MB are provided.
The second is the change of the usage in MB per range since the last check
(e.g. in MB per 24 hours) and the 3rd is the averaged change (so called
@@ -26,7 +26,7 @@ inventory:
Finds one item per Span.
[parameters]
- See man page of {df}.
+parameters (dict): See man page of {df}.
[configuration]
- See man page of {df}.
+filesystem_default_levels: And other, see man page of {df}.
diff --git a/checks/hitachi_hnas_span b/checks/hitachi_hnas_span
index f6421fe..6f044d2 100644
--- a/checks/hitachi_hnas_span
+++ b/checks/hitachi_hnas_span
@@ -41,7 +41,9 @@ def check_hitachi_hnas_span(item, params, info):
avail_mb = size_mb - used_mb
fslist.append((item, size_mb, avail_mb))
- return df_check_filesystem_list(item, params, fslist)
+ return df_check_filesystem_list(item, params, fslist)
+
+ return 3, "Span %s not found" % item
check_info["hitachi_hnas_span"] = {
"check_function" : check_hitachi_hnas_span,