Cheshire Cat Computing

Software support and information
It is currently Sat May 25, 2013 11:10 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Nov 18, 2004 10:45 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
This is supposed to be a general plugin to run via NRPE. It checks for the various RAID systems, and verifies they are working correctly. Currently supported:

AIX LVM
Solaris Solstice disksuite
Linux raid
Linux Serveraid hardware
Linux MegaIDE hardware

Some of the linux options require sudo to be installed (so it can sudo to get rights to run certain queries or read files in /proc).

I plan to post it soon, but if you're in a hurry, email me direct.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Thu Jun 28, 2012 11:29 pm 
Offline
User

Joined: Thu Jun 28, 2012 10:42 pm
Posts: 1
Hi,

I've modified the script to actual purposes on megaraid-Section.

It was:

Code:
sub check_megacli {
        my @CMD = ($megacli, '-PDList', '-aALL', '-NoLog');
        unshift(@CMD, $sudo) if $> and $sudo;


Megacli requires a Kernel version <=2.6, so it won't work on an actual Ubuntu release with 3.2 Kernel. I modified the script as follow, which works fine on 2.6 and 3.x kernel.

Code:
sub check_megacli {
        my @CMD = ($megacli, '-PDList', '-aALL', '-NoLog');
        my $file = "/proc/version";
        open my $fha, ,'<', $file or die "Not found: $!\n";
        my @ver = <$fha>;
        close $fha;
        foreach my $line (@ver) {
                if ($line =~ /^Linux version 3\..*$/i) {
                        @CMD = ('setarch', 'x86_64', '--uname-2.6', $megacli, '-PDList', '-aALL', '-NoLog');
                }
        }

        unshift(@CMD, $sudo) if $> and $sudo;



Regards

Wolfgang


Top
 Profile  
 
PostPosted: Wed Aug 15, 2012 3:59 pm 
Offline
User

Joined: Wed Aug 15, 2012 3:56 pm
Posts: 1
stevesh wrote:
This is supposed to be a general plugin to run via NRPE. It checks for the various RAID systems, and verifies they are working correctly. Currently supported:

AIX LVM
Solaris Solstice disksuite
Linux raid
Linux Serveraid hardware
Linux MegaIDE hardware

Some of the linux options require sudo to be installed (so it can sudo to get rights to run certain queries or read files in /proc).

I plan to post it soon, but if you're in a hurry, email me direct. In any case, I hope one of the solutions offered here work for you.


Hi Steve,

I have a simple question. how do I download this?

_________________
Always desire to learn something useful. - Sophocles


Top
 Profile  
 
PostPosted: Sun Sep 30, 2012 10:19 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
FAQ and download links;

viewtopic.php?f=20&t=349

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group