Date: Wed, 14 Feb 2007 08:39:59 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: S?ren Klintrup <soren@klintrup.dk> Cc: freebsd-proliant@freebsd.org Subject: Re: HP Proliant SmartArray nagios check Message-ID: <20070213213959.GL90772@k7.mavetju> In-Reply-To: <45D1B2B1.3070703@klintrup.dk> References: <45D1B2B1.3070703@klintrup.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070213213959.GL90772>