Monitor V7000 active alerts in Xymon


Image

Image

Image

Continue with my previous post on installing the Xymon, you can write your own monitor scripts. I wrote a script named v7000alerts to check whether there are active alerts in my IBM StorWize V7000.

1) Download the script v7000alerts to /home/xymon/server/ext, and run ‘chmod a+x v7000alerts’ and ‘chown xymon:xymon v7000alerts’.

2) Add the following into /home/xymon/server/etc/tasks.cfg

[v7000alerts]
ENVFILE /home/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD $XYMONHOME/ext/v7000alerts
LOGFILE $XYMONSERVERLOGS/v7000alerts.log
INTERVAL 5m

3) Add your V7000 into the /home/xymon/server/etc/hosts.cfg file, here is a example:

# STORAGES PAGE
page storages STORAGES
group-compress <font size=”+1″>IBM StorWize V7000</font>
192.168.1.100 SYD-V7000 # v7000alerts sslcert https://192.168.1.100

The v7000alerts script can be downloaded from here.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s