[hobbit] Check for mounted drives on *nix servers

Lennon, Padraig Padraig.Lennon at pioneerinvestments.com
Fri Feb 26 22:59:13 CET 2010


Nope.. Just SAN attached drives.. Thanks though, Was just wondering if
there was something built in that I could use.. 

In the meantime i've written a draft server-side perl script based on
rootlogin.pl which parses the client data from *nix servers and checks
against a predefined array of servers and drives.. Makes it easier...


my %hosts = (
    server1 => [ "/path/of/drive1", "/path/of/drive2" ],
    server2 => [ "/path/of/drive1", "/path/of/drive2" ],
    server3 => [ "/path/of/drive1", "/path/of/drive2" ],
);

Etc....

It sends a status message called chkmnt like so...

Mounted Drive Check - server1

green /path/of/drive1 is mounted
red /path/of/drive2 is NOT mounted
green /path/of/drive3 is mounted

...


If anyone wants a copy I can put it up on the shire...

Padraig Lennon 
Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 

padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

-----Original Message-----
From: Odinn [mailto:odinn_asgaard at yahoo.com] 
Sent: 26 February 2010 21:42
To: hobbit at hswn.dk
Subject: Re: [hobbit] Check for mounted drives on *nix servers

If you are referring to NFS mounted drives, it would be a simple script
to write to check using showmount
 --


Jim Sloan


Just remember, today is the day you thought tomorrow was going to be
yesterday.



----- Original Message ----
From: "Lennon, Padraig" <Padraig.Lennon at pioneerinvestments.com>
To: hobbit at hswn.dk
Sent: Fri, February 26, 2010 3:03:05 PM
Subject: [hobbit] Check for mounted drives on *nix servers

Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks




Padraig Lennon 
Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 

padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk



      

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk



-------------- next part --------------



"The information in this e-mail and in any attachments is confidential and intended solely 
for the attention and use of the named addressee(s). This information may be subject to legal, 
professional or other privilege and further distribution of it is strictly prohibited without 
our authority. If you are not the intended recipient, you are not authorised to and must not 
disclose, copy, distribute, or retain this message or any part of it, and should notify us 
immediately.

This footnote also confirms that this email has been automatically scanned for the presence 
of computer viruses, profanities and certain file types."

Pioneer Investment Management Limited.

1 George’s Quay Plaza, George’s Quay, Dublin 2, Ireland. 

Registered in Ireland no. 287793.


More information about the Xymon mailing list