initial commit of file from CVS for smeserver-raidstatus on Sat Sep 7 20:59:51 AEST 2024
This commit is contained in:
14
root/etc/cron.weekly/mail_raid_status
Normal file
14
root/etc/cron.weekly/mail_raid_status
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use esmith::ConfigDB;
|
||||
|
||||
my $DB = esmith::ConfigDB->open_ro;
|
||||
my $Domainname = $DB->get_value('DomainName');
|
||||
my $mail = $DB->get_prop('raidstatus','mailto') || '';
|
||||
|
||||
my $systemname = $DB->get_value('SystemName');
|
||||
$mail = $mail . ' admin@'.$Domainname;
|
||||
my $MailStatus = `/sbin/mdadm --detail \$(/bin/ls /dev/md?)|/bin/mail -s "RAID status of $systemname.$Domainname" $mail`;
|
||||
|
@@ -0,0 +1 @@
|
||||
configuration
|
0
root/etc/e-smith/events/smeserver-raidstatus-update/.gitignore
vendored
Normal file
0
root/etc/e-smith/events/smeserver-raidstatus-update/.gitignore
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="bg">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Статус</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="da">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Status</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="de">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Hier sehen Sie den Zustand Ihres Raidverbund.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Zustand</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Hier sehen Sie den Zustand Ihres Raidverbund.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Anzahl der Festplatten</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Aktive Festplatten</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Defekte Festplatten</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Ersatz Festplatten</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>Der Raid Verbund ist in Ordnung.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>Entweder findet derzeit ein Wiederherstellung statt, oder eine Festplatte ist nicht Mitglied des Raidverbund</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>Sie haben einen fehlerhaften Raid Verbund, tauschen Sie die defekte Festplatte aus.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>Sie haben kein Raid konfiguriert.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Empfänger (n)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>Ein wöchentlicher E-Mail des RAID-Status an den Server Administrator gesendet, Sie können hier hinzufügen andere Empfänger (getrennte E-Mails mit einem Leerzeichen).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="el">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="en-us">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space). </trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="es">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Estado</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="et">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="fr">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Statut du Raid</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Status</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Ici vous pouvez voir l'état de votre Raid</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Nom du Raid</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Nombre de disques</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Disques actifs</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Disques en défauts</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Disques de secours</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>Le raid est fonctionnel</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>Le RAID se synchronise ou vous avez installé la SME Server sur un seul disque</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>Votre raid est désynchronisé, vérifiez quel disque est en défaut et essayez de l'ajouter à nouveau</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>Vous n'avez pas de raid logiciel</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Destinataire(s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>Un email hebdomadaire de l'état du raid est envoyé à l'administrateur du serveur, vous pouvez ajouter ici d'autres destinataires(séparer les emails par un espace).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="he">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="hu">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Állapot</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="id">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="it">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Stato</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="ja">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>状態</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="nb">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Tilstand</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="nl">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Staat</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="pl">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Stan</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="pt-br">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Estado</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="pt">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Estado</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="ro">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="ru">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="sl">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="sv">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>Tillstånd</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="th">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>จังหวัด, รัฐ, สถานะ</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="tr">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>State</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="zh-cn">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>状态</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@@ -0,0 +1,73 @@
|
||||
<lexicon lang="zh-tw">
|
||||
<!-- vim: ft=xml:
|
||||
-->
|
||||
|
||||
<entry>
|
||||
<base>FORM_TITLE</base>
|
||||
<trans>Raidstatus</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>STATUS</base>
|
||||
<trans>狀態</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTION_RAIDSTATUS</base>
|
||||
<trans>Here you can see your Raid state.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>RAID</base>
|
||||
<trans>Raid Name</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DEVICECOUNT</base>
|
||||
<trans>Device count</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>ACTIVEDEVICES</base>
|
||||
<trans>Active Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>FAILDDEVICES</base>
|
||||
<trans>Faild Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>SPAREDEVICES</base>
|
||||
<trans>Spare Device</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONGREEN</base>
|
||||
<trans>The Raid is ok.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONORANGE</base>
|
||||
<trans>A Raid array is synchronizing or you have installed SME Server on a single drive</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>DESCRIPTIONRED</base>
|
||||
<trans>You have a desynchronized raid, please check which drive is failed and if possible try to add it again</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>NORAID</base>
|
||||
<trans>You have no raid.</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>MAILTO</base>
|
||||
<trans>Recipient (s)</trans>
|
||||
</entry>
|
||||
<entry>
|
||||
<base>DESC_MAILTO</base>
|
||||
<trans>A weekly email of the raid status is sent to the server administrator, you can add here other recipients (separate emails with a space).</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
40
root/etc/e-smith/web/functions/raidstatus
Executable file
40
root/etc/e-smith/web/functions/raidstatus
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/perl -wT
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# heading : Administration
|
||||
# description : Raid Status
|
||||
# navigation : 3100 3200
|
||||
#
|
||||
# Authors: Stephane de Labrusse
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use esmith::FormMagick::Panel::raidstatus;
|
||||
|
||||
my $fm = esmith::FormMagick::Panel::raidstatus->new();
|
||||
$fm->display();
|
||||
|
||||
__DATA__
|
||||
<form
|
||||
title="FORM_TITLE"
|
||||
header="/etc/e-smith/web/common/head.tmpl"
|
||||
footer="/etc/e-smith/web/common/foot.tmpl">
|
||||
|
||||
<page name="First" pre-event="print_status_message()" post-event="apply()">
|
||||
<description>DESCRIPTION_RAIDSTATUS</description>
|
||||
<subroutine src="print_raidstatus()" />
|
||||
|
||||
<field type="text" id="mailto" size="80">
|
||||
<label>MAILTO</label>
|
||||
value="">
|
||||
<description>DESC_MAILTO</description>
|
||||
<label>MAILTO</label>
|
||||
</field>
|
||||
|
||||
<subroutine src="print_button('SAVE')" />
|
||||
</page>
|
||||
|
||||
</form>
|
||||
|
@@ -0,0 +1,202 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
package esmith::FormMagick::Panel::raidstatus;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use esmith::FormMagick;
|
||||
use esmith::cgi;
|
||||
use esmith::util;
|
||||
use File::Basename;
|
||||
use Exporter;
|
||||
use Carp qw(verbose);
|
||||
use Getopt::Long;
|
||||
use esmith::ConfigDB;
|
||||
|
||||
our @ISA = qw(esmith::FormMagick Exporter);
|
||||
our @EXPORT = qw(
|
||||
apply
|
||||
);
|
||||
|
||||
our $configdb = esmith::ConfigDB->open();
|
||||
|
||||
sub new {
|
||||
shift;
|
||||
my $self = esmith::FormMagick->new();
|
||||
$self->{calling_package} = (caller)[0];
|
||||
bless $self;
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
||||
sub print_raidstatus {
|
||||
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
##we start to read the raidstatus key to retrieve properties
|
||||
my $rec = $configdb->get('raidstatus');
|
||||
if ($rec) {
|
||||
$q->param(-name=>'mailto',-value=>
|
||||
$rec->prop('mailto'));
|
||||
}
|
||||
|
||||
print " <tr>\n <td>\n ";
|
||||
print $q->start_table ({-CLASS => "sme-border", width=>"700"});
|
||||
print $q->Tr(
|
||||
esmith::cgi::genSmallCell($q, $self->localise('STATUS'),"header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('RAID'),"header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('DEVICECOUNT'),"header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('ACTIVEDEVICES'),"header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('FAILDDEVICES'),"header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('SPAREDEVICES'),"header"));
|
||||
|
||||
##Start to check linux raid status
|
||||
my $Raidcheck = `/bin/cat /proc/mdstat`;
|
||||
if ( $Raidcheck =~ "raid"){
|
||||
|
||||
my $file = "/proc/mdstat";
|
||||
my $device = "all";
|
||||
|
||||
# Get command line options.
|
||||
GetOptions ('file=s' => \$file,
|
||||
'device=s' => \$device,
|
||||
'help' => sub { &usage() } );
|
||||
|
||||
## Strip leading "/dev/" from --device in case it has been given
|
||||
$device =~ s/^\/dev\///;
|
||||
|
||||
## Return codes for Nagios
|
||||
my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);
|
||||
|
||||
## This is a global return value - set to the worst result we get overall
|
||||
my $retval = 0;
|
||||
|
||||
my (%active_devs, %failed_devs, %spare_devs);
|
||||
|
||||
open FILE, "< $file" or die "Can't open $file : $!";
|
||||
while (<FILE>) {
|
||||
next if ! /^(md\d+)+\s*:/;
|
||||
next if $device ne "all" and $device ne $1;
|
||||
my $dev = $1;
|
||||
my @array = split(/ /);
|
||||
for $_ (@array) {
|
||||
next if ! /(\w+)\[\d+\](\(.\))*/;
|
||||
if (defined $2){
|
||||
if ($2 eq "(F)") {
|
||||
$failed_devs{$dev} .= "$1,";
|
||||
}
|
||||
elsif ($2 eq "(S)") {
|
||||
$spare_devs{$dev} .= "$1,";
|
||||
}}
|
||||
else {
|
||||
$active_devs{$dev} .= "$1,";
|
||||
}
|
||||
}
|
||||
if (! defined($active_devs{$dev})) { $active_devs{$dev} = "none"; }
|
||||
else { $active_devs{$dev} =~ s/,$//; }
|
||||
if (! defined($spare_devs{$dev})) { $spare_devs{$dev} = "none"; }
|
||||
else { $spare_devs{$dev} =~ s/,$//; }
|
||||
if (! defined($failed_devs{$dev})) { $failed_devs{$dev} = "none"; }
|
||||
else { $failed_devs{$dev} =~ s/,$//; }
|
||||
$_ = <FILE>;
|
||||
/\[(\d+)\/(\d+)\]\s+\[(.*)\]$/;
|
||||
my $devs_total = $1;
|
||||
my $devs_up = $2;
|
||||
my $stat = $3;
|
||||
my $result = "OK";
|
||||
if ($devs_total > $devs_up or $failed_devs{$dev} ne "none") {
|
||||
$result = "CRITICAL";
|
||||
$retval = $ERRORS{"CRITICAL"};
|
||||
}
|
||||
my $active=$active_devs{$dev};
|
||||
my $failed=$failed_devs{$dev};
|
||||
my $spare=$spare_devs{$dev};
|
||||
my @raidstatus = "$result - $dev [$stat] has $devs_up of $devs_total devices active (active=$active_devs{$dev} failed=$failed_devs{$dev} spare=$spare_devs{$dev})\n";
|
||||
foreach my $raid (@raidstatus)
|
||||
{
|
||||
if ( $raid =~ ("CRITICAL" && "failed=none") ){
|
||||
if ( $raid =~ "CRITICAL" ){
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border-center", bgcolor=>"orange", align=>"center", width=>"60"}, $result),
|
||||
$q->td({class=>"sme-border-center", width=>"100"}, $dev . " [ " . $stat . " ]"),
|
||||
$q->td({class=>"sme-border-center"}, $devs_up),
|
||||
$q->td({class=>"sme-border-center"}, $active),
|
||||
$q->td({class=>"sme-border-center"}, $failed),
|
||||
$q->td({class=>"sme-border-center"}, $spare),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border-center", bgcolor=>"#32CD32", align=>"center", width=>"60"}, $result),
|
||||
$q->td({class=>"sme-border-center", width=>"100"}, $dev . " [ " . $stat . " ]"),
|
||||
$q->td({class=>"sme-border-center"}, $devs_up),
|
||||
$q->td({class=>"sme-border-center"}, $active),
|
||||
$q->td({class=>"sme-border-center"}, $failed),
|
||||
$q->td({class=>"sme-border-center"}, $spare),
|
||||
);
|
||||
}
|
||||
}
|
||||
elsif ( $raid =~ ("CRITICAL" && "_") ){
|
||||
if ( $raid =~ "CRITICAL" ){
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border-center", bgcolor=>"red", align=>"center", width=>"60"}, $result),
|
||||
$q->td({class=>"sme-border-center", width=>"100"}, $dev . " [ " . $stat . " ]"),
|
||||
$q->td({class=>"sme-border-center"}, $devs_up),
|
||||
$q->td({class=>"sme-border-center"}, $active),
|
||||
$q->td({class=>"sme-border-center"}, $failed),
|
||||
$q->td({class=>"sme-border-center"}, $spare),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border-center", bgcolor=>"#32CD32", align=>"center", width=>"60"}, $result),
|
||||
$q->td({class=>"sme-border-center", width=>"100"}, $dev . " [ " . $stat . " ]"),
|
||||
$q->td({class=>"sme-border-center"}, $devs_up),
|
||||
$q->td({class=>"sme-border-center"}, $active),
|
||||
$q->td({class=>"sme-border-center"}, $failed),
|
||||
$q->td({class=>"sme-border-center"}, $spare),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
print $q->end_table;
|
||||
print "<br><br>\n";
|
||||
|
||||
print $q->start_table ({-CLASS => "sme-border", width=>"700"});
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border", bgcolor=>"#32CD32", align=>"center", width=>"60"}),
|
||||
$q->td({class=>"sme-border"}, $self->localise('DESCRIPTIONGREEN')),
|
||||
);
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border", bgcolor=>"orange", align=>"center", width=>"60"}),
|
||||
$q->td({class=>"sme-border"}, $self->localise('DESCRIPTIONORANGE')),
|
||||
);
|
||||
print $q->Tr(
|
||||
$q->td({class=>"sme-border", bgcolor=>"red", align=>"center", width=>"60"}),
|
||||
$q->td({class=>"sme-border"}, $self->localise('DESCRIPTIONRED')),
|
||||
);
|
||||
print $q->end_table;
|
||||
print "<br><br>\n";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
print $q->h3 ($self->localise('NORAID'));
|
||||
print $q->end_table;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
##this routine is to save the properties
|
||||
sub apply {
|
||||
my ($self) = @_;
|
||||
my $q = $self->{cgi};
|
||||
$configdb->set_prop('raidstatus', 'mailto', $q->param("mailto"));
|
||||
|
||||
return $self->success('SUCCESS','First');
|
||||
}
|
||||
1;
|
||||
|
Reference in New Issue
Block a user