Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-15-2003, 01:27 PM
|
#1
|
LQ Newbie
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20
Rep:
|
Monitor Promise FastTrack TX2000 RAID controller
Hello! I'd like to know if some of you have a Promise ATA RAID controller (TX2, TX2000 or any other, it should be the same)...I'm trying to find a way to montor the RAID Array but there is nothing special on the official website apart a file with C code (FT-ioctl.txt in the latest RedHat driver pack).
Does someone have a solution?
|
|
|
08-15-2003, 01:33 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I have a perl script to monitor our servers at work - it checks the array every 15 minutes and sends an e-mail if there is a problem. I can post it on Monday if you like.
|
|
|
08-15-2003, 01:37 PM
|
#3
|
LQ Newbie
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20
Original Poster
Rep:
|
Oh yes! It would be great!
|
|
|
08-15-2003, 01:47 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
OK, I'll e-mail my work address with this thread link.
|
|
|
08-18-2003, 03:12 AM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Here is the script I use:
Code:
#!/usr/bin/perl
$address = "it.support\@somehost.com";
$time = localtime(time());
@lines = `cat /proc/scsi/FastTrak/0`;
if($lines[2] ne "Array - Array[1] : 1X2 Mirror (OK)\n"){
print "$time Raid Failure! - $lines[2]";
open(MAIL, "|/usr/lib/sendmail -t");
print MAIL "To:$address\n";
print MAIL "From:$address\n";
print MAIL "Subject:The Mail server has a raid failure!\n\n$lines[2]\n";
close(MAIL);
}
else{
print "$time Raid OK! - $lines[2]";
}
exit;
|
|
|
08-20-2003, 09:44 AM
|
#6
|
LQ Newbie
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20
Original Poster
Rep:
|
Thanks a lot!
|
|
|
All times are GMT -5. The time now is 12:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|