[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xymon] missing disk detection



Write a script. Anything that  you can run via the command line, can be scripted.  Basically you do this:

run command that tells you about the disks

parse that output looking for error messages or bad words like "missing"

Send a message using bb (is that renamed xymon in 4.3.0 beta3?)

bb 0.0.0.0  "status+15m hostname MyDisks color output of command"

0.0.0.0 would be the ip address of your server if you only have 1
status+15m means every 15 minutes the server expects an update, otherwise it will go purple
hostname is whatever is in bb-hosts (hosts.cfg)
MyDisks is the name of your custom test that this script is running
color  - green|red|yellow
any more output is optional, but very helpful in looking at the test's screen.


Then you can either run that script from a crontab or hobbitlaunch.cfg (xymonlaunch.cfg).




Paul Root
Lead Internet Systems Eng
Network Services



________________________________
From: Larry Barber [mailto:lebarber (at) gmail.com]
Sent: Wednesday, January 12, 2011 2:17 PM
To: xymon (at) xymon.com
Subject: [xymon] missing disk detection

Is there any way to set up xymon so that it will detect a missing disk? I had a SAN disk on a Windows box go missing for an hour or so last night and it wasn't detected.

Thanks,
Larry Barber

________________________________
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.