HP Proliant SmartArray nagios check

Edwin Groothuis edwin at mavetju.org
Tue Feb 13 21:40:08 UTC 2007


On Tue, Feb 13, 2007 at 01:44:33PM +0100, S?ren Klintrup wrote:
> More information at http://www.klintrup.dk/soren/proliant/

To overcome the problem of many of [Tt][Hh][Ee][Ss][Ee] kind of
string, you can pipe the output through tr(1) so that it at least
is human-readable (instead of the minimal requirement of being a
cyborg :-)

    [~] edwin at k7>echo "TtHhEeSsEe" | tr A-Z a-z
    tthheessee

Also, the case statement doesn't have a catch for the case that the
variable is "" or not one of the five expected strings.

And as the last one, if you use 's/foo/bar/i', it be case insensitive
too so the sed statement is easier to write/read/check for humans.

But for the rest, works fine!

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the freebsd-proliant mailing list