Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Raid
(view source)
Revision as of 11:15, 22 December 2013
122 bytes added
,
11:15, 22 December 2013
→Receive periodic check of Raid by mail
Line 235:
Line 235:
So the purpose is to have a routine which sent mail to the user of your choice each week.
So the purpose is to have a routine which sent mail to the user of your choice each week.
−
nano /etc/cron.weekly/raid-status
+
nano /etc/cron.weekly/raid-status
.sh
You have to change the variable '''DEST="stephane@your-domaine-name.org"''' to the mail you decide to use.
You have to change the variable '''DEST="stephane@your-domaine-name.org"''' to the mail you decide to use.
Line 255:
Line 255:
save by ctrl+x
save by ctrl+x
−
chmod +x /etc/cron.weekly/raid-status
+
chmod +x /etc/cron.weekly/raid-status
.sh
each sunday a 4h00 AM you will receive a mail which looks to this :
each sunday a 4h00 AM you will receive a mail which looks to this :
Line 307:
Line 307:
0 8 2 0 active sync /dev/sda2
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
1 8 18 1 active sync /dev/sdb2
+
+
If you want to test the message sent without waiting the next sunday, you can do
+
/etc/cron.weekly/raid-status.sh
====nospare====
====nospare====
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search