Xymon Mailing List Archive search

missing disk detection

6 messages in this thread

list Larry Barber · Wed, 12 Jan 2011 14:16:44 -0600 ·
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
list Johan Sjöberg · Wed, 12 Jan 2011 21:26:45 +0100 ·
You should be able to set up a file check that verifies that a file on the SAN exists. If the disk is disconnected, the file check should go red.

/Johan
quoted from Larry Barber

From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
Sent: den 12 januari 2011 21:17
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
list Paul Root · Wed, 12 Jan 2011 14:41:25 -0600 ·
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
quoted from Larry Barber


From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
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.
list Larry Barber · Wed, 12 Jan 2011 14:44:09 -0600 ·
Can you do that when the client is in "local" mode?

Thanks,
Larry Barber

On Wed, Jan 12, 2011 at 2:26 PM, Johan Sjöberg <
quoted from Johan Sjöberg
user-74c177c1220d@xymon.invalid> wrote:
You should be able to set up a file check that verifies that a file on the
SAN exists. If the disk is disconnected, the file check should go red.


/Johan


*From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
*Sent:* den 12 januari 2011 21:17
*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
list Johan Sjöberg · Wed, 12 Jan 2011 21:54:37 +0100 ·
Yes, I think so, there are some extension scripts available for BBWin which can be used to do file checks on the client when running in local mode. I think one is even available in the installer "Fsmon" or something.
quoted from Larry Barber

/Johan

From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
Sent: den 12 januari 2011 21:44
To: xymon at xymon.com
Subject: Re: [xymon] missing disk detection

Can you do that when the client is in "local" mode?

Thanks,
Larry Barber
On Wed, Jan 12, 2011 at 2:26 PM, Johan Sjöberg <user-74c177c1220d@xymon.invalid<mailto:user-74c177c1220d@xymon.invalid>> wrote:
You should be able to set up a file check that verifies that a file on the SAN exists. If the disk is disconnected, the file check should go red.

/Johan

From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid<mailto:user-6ef9c2864140@xymon.invalid>]
Sent: den 12 januari 2011 21:17
To: xymon at xymon.com<mailto: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
list Stephen · Sat, 15 Jan 2011 13:06:51 -0500 ·
I have "tag" files,  ".mounted"       at the top of each native f/s mount,
                                         ".NFSmount"   at the top of each NFS disk.
                                         ".CIFSmount"  at the top of each CIFS disk.
I test on ( I'm Linux so..) I test:
    1) presence/readability
    2)  then, since a f/s fault will flip the f/s to read-only, writeability (echo date into it).

How you do this in windows is not my thing...
quoted from Larry Barber
#--------------------------------------------------------------------------------------------------------------
On 1/12/2011 3:16 PM, Larry Barber wrote:
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