https://bugs.contribs.org/show_bug.cgi?id=10297
Bug ID: 10297
Summary: RAID check on non RAID systems
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-sme9admin
Assignee: step...@de-labrusse.fr
Reporter: jcr...@safeandsoundit.co.uk
QA Contact: contribteam@lists.contribs.org
Target Milestone: ---
Another small gotcha
Most of my servers are VMs
sme9admin reports
Status of Linux software RAID :
CRITICAL - md0 [U_] has 1 of 2 devices active (active=vda1 failed=none
spare=none)
However, this is not strictly true as the VM only has a single drive
Would it be worth adding a check to see if the RAID status is enabled ?
Here's the code to modify
##Start to check linux raid status and display the content
my $Raidcheck = `/bin/cat /proc/mdstat`;
if ( $Raidcheck =~ "raid")
{
print $q->br;
print $q->p(gettext("Status of Linux software RAID :"));
my $file = "/proc/mdstat";
my $device = "all";
Possibly something like:
my $Raidcheck = `/bin/cat /proc/mdstat`;
my $RaidStat = $smedb->get_prop('raidmonitor','status') || 'disabled';
if (($Raidcheck =~ "raid") and ($RaidStat = 'enabled'))
Except for some reason I can't figure why ignores the $RaidStat disabled and
prints anyway... my perl is awful
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/