From 4aae5f632773f9fb6e05d2fc380edc0700f377e3 Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Fri, 6 Dec 2013 15:53:42 +0000 Subject: [PATCH] README updated --- check_storwize/README.md | 61 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/check_storwize/README.md b/check_storwize/README.md index 15ab9c2..7a6a8f3 100644 --- a/check_storwize/README.md +++ b/check_storwize/README.md @@ -12,7 +12,66 @@ with the following differences: - More stable plugin results when disk array is broken -EXAMPLE USAGE +USAGE ============= ``` + python check_storwize.py --help +Usage: check_storwize.py [options] + +Options: + -h, --help show this help message and exit + -H HOSTNAME, -M HOSTNAME, --hostname=HOSTNAME + Hostname or ip address + -U USER, --user=USER Log in as this user to storwize + -Q QUERY, --query=QUERY + Query to send to storwize (see also -L) + -L, --list-queries List of valid queries + --test Run this plugin in test mode + + Generic Options: + --timeout=50 Exit plugin with unknown status after x seconds + --threshold=range Thresholds in standard nagios threshold format + --th=range Same as --threshold + --extra-opts=@file Read options from an ini file. See + http://nagiosplugins.org/extra-opts + -d, --debug Print debug info + + Display Options: + -v, --verbose Print more verbose info + --no-perfdata Dont show any performance data + --no-longoutput Hide longoutput from the plugin output (i.e. only + display first line of the output) + --no-summary Hide summary from plugin output + --get-metrics Print all available metrics and exit (can be combined + with --verbose) + --legacy Deprecated, do not use ``` + +EXAMPLES +======== +``` +# List array status +python check_storwize -H remote_host -U username -Q lsarray + +# List vdisk status +python check_storwize -H remote_host -U username -Q lsarray + +``` + + +Valid modes +=========== +The following is a list of valid modes (at the time of this writing). For an up-to-date list consult check_storwize -L + + * lsarray + * lsdrive + * lsenclosurebattery + * lsenclosurecanister + * lsenclosurepsu + * lsenclosureslot + * lsenclosure + * lsmdiskgrp + * lsmdskgrp + * lsmgrp + * lsrcrelationship + * lsvdisk