LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-15-2003, 01:27 PM   #1
Minuteman
LQ Newbie
 
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20

Rep: Reputation: 0
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?
 
Old 08-15-2003, 01:33 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 08-15-2003, 01:37 PM   #3
Minuteman
LQ Newbie
 
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Oh yes! It would be great!
 
Old 08-15-2003, 01:47 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
OK, I'll e-mail my work address with this thread link.
 
Old 08-18-2003, 03:12 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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;
 
Old 08-20-2003, 09:44 AM   #6
Minuteman
LQ Newbie
 
Registered: Mar 2003
Location: Switzerland
Distribution: Redhat, Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks a lot!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Core 2 and Promise RAID FastTrak TX2000 bknight Fedora - Installation 1 08-09-2004 07:02 AM
Promise tx2000 Raid Migration Jonasx Linux - Hardware 0 05-16-2004 10:45 AM
Problem detecting Promise MB Fasttrack 133 controller FransE Linux - Hardware 0 03-01-2004 06:42 PM
Compiled drivers for Promise Fasttrack 376 controller. Sigma Fedora 0 12-01-2003 01:17 AM
How to install Promise TX2000 RAID 1 in LINUX RedHat 9? limbeetat Linux - Hardware 4 11-03-2003 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration