[Xymon] 3Par reports, check status

Jeremy Laidman jlaidman at rebel-it.com.au
Wed Aug 28 02:14:08 CEST 2013


On 28 August 2013 09:37, Cure4All <cure4all at gmail.com> wrote:

> Is there a way to monitor 3PAR SAN using it's own CLI or SSH?  Thank you.
>

Yes, to get all of the parameters you're searching for, run the Nagios
script here:

http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/3PAR-check-script/details

Parse the output, and feed into Xymon.  Perhaps like so:

#!/bin/sh
[ "$XYMON" ] || { echo "Run from xymonlaunch or xymoncmd">&2; exit 1; }
TARGET=san.example.com
USERNAME=admin
for CMD in pd node ld vv port_fc cap_fc cap_nl ps; do
    MSG=`/path/to/check_3par $TARGET $USERNAME $CMD`
 if echo "$MSG" | grep "CRITICAL"; then
COL=red
elif echo "$MSG" | grep "WARNING"; then
 COL=yellow
else
COL=green
 fi
$XYMON $XYMSRV "status $TARGET.$CMD $COL `date`

$MSG
"
done

This is based on the sample in the Xymon tips and tricks page:

https://lxdns101.in.telstra.com.au/xymon/help/xymon-tips.html#scripts

J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130828/11b5d7c8/attachment.html>


More information about the Xymon mailing list