Skip to content

Commit 449b7ae

Browse files
author
Oliver Cervera
authored
Update Email example
1 parent 6c22505 commit 449b7ae

File tree

1 file changed

+85
-63
lines changed

1 file changed

+85
-63
lines changed

README.md

Lines changed: 85 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -65,53 +65,52 @@ You can re-enable full output in the email by switching the option `VERBOSITY` b
6565

6666
Here's a sneak peek of the email report.
6767

68-
**TO BE UPDATED **
6968

7069
```markdown
7170
## [COMPLETED] DIFF + SYNC + SCRUB Jobs (SnapRAID on omv-test.local)
72-
73-
SnapRAID Script Job started [Sat Jan 9 02:07:46 CET 2021]
74-
Running SnapRAID version 11.5
75-
SnapRAID Script version 2.7.0
71+
SnapRAID Script Job started [Tue 20 Apr 11:43:37 CEST 2021]
72+
Running SnapRAID version 11.5
73+
SnapRAID AIO Script version X.YZ
7674

7775
----------
7876

7977
## Preprocessing
80-
81-
Configuration file found! Proceeding.
82-
Testing that all parity files are present.
78+
Healthchecks.io integration is enabled, script status will be reported to the configured URL.
79+
OKConfiguration file found! Proceeding.
80+
Testing that all parity files are present.
8381
All parity files found. Continuing...
82+
Setting up Containers array
83+
84+
### Stopping Containers [Tue 20 Apr 11:43:37 CEST 2021]
85+
Stopping Container - Code-server
86+
code-server
87+
Stopping Container - Portainer
88+
portainer
8489

8590
----------
8691

8792
## Processing
88-
89-
### SnapRAID TOUCH [Sat Jan 9 02:07:46 CET 2021]
90-
91-
Checking for zero sub-second files.
92-
No zero sub-second timestamp files found.
93-
TOUCH finished [Sat Jan 9 02:07:46 CET 2021]
94-
95-
### SnapRAID DIFF [Sat Jan 9 02:07:46 CET 2021]
96-
97-
DIFF finished [Sat Jan 9 02:07:46 CET 2021]
98-
99-
**SUMMARY of changes - Added [2] - Deleted [0] - Moved [0] - Copied [0] - Updated [0]**
100-
93+
### SnapRAID TOUCH [Tue 20 Apr 11:43:37 CEST 2021]
94+
Checking for zero sub-second files.
95+
No zero sub-second timestamp files found.
96+
TOUCH finished [Tue 20 Apr 11:43:38 CEST 2021]
97+
98+
### SnapRAID DIFF [Tue 20 Apr 11:43:38 CEST 2021]
99+
DIFF finished [Tue 20 Apr 11:43:38 CEST 2021]
100+
**SUMMARY of changes - Added [0] - Deleted [0] - Moved [0] - Copied [0] - Updated [1]**
101101
There are no deleted files, that's fine.
102-
There are no updated files, that's fine.
103-
SYNC is authorized.
104-
105-
### SnapRAID SYNC [Sat Jan 9 02:07:46 CET 2021]
102+
There are updated files. The number of updated files (1) is below the threshold of (500).
103+
SYNC is authorized. [Tue 20 Apr 11:43:38 CEST 2021]
106104

105+
### SnapRAID SYNC [Tue 20 Apr 11:43:38 CEST 2021]
107106
Self test...
108107
Loading state from /srv/dev-disk-by-label-DISK1/snapraid.content...
109108
Scanning disk DATA1...
110109
Scanning disk DATA2...
111110
Using 0 MiB of memory for the file-system.
112111
Initializing...
113112
Hashing...
114-
SYNC_JOB--Everything OK
113+
SYNC - Everything OK
115114
Resizing...
116115
Saving state to /srv/dev-disk-by-label-DISK1/snapraid.content...
117116
Saving state to /srv/dev-disk-by-label-DISK2/snapraid.content...
@@ -126,20 +125,18 @@ Verified /srv/dev-disk-by-label-DISK3/snapraid.content in 0 seconds
126125
Verified /srv/dev-disk-by-label-DISK2/snapraid.content in 0 seconds
127126
Verified /srv/dev-disk-by-label-DISK1/snapraid.content in 0 seconds
128127
Syncing...
129-
Using 32 MiB of memory for 32 cached blocks.
130-
131-
DATA1 59% | ***********************************
132-
DATA2 55% | ********************************
133-
parity 0% |
134-
2-parity 0% |
135-
raid 6% |
136-
hash 5% |
137-
sched 7% |
138-
misc 17% |
139-
|______________
140-
wait time (total, less is better)
141-
142-
SYNC_JOB--Everything OK
128+
Using 32 MiB of memory for 32 cached blocks.
129+
DATA1 12% | *******
130+
DATA2 82% | ************************************************
131+
parity 0% |
132+
2-parity 0% |
133+
raid 1% | *
134+
hash 1% |
135+
sched 11% | ******
136+
misc 0% |
137+
|____________________________________________________________
138+
wait time (total, less is better)
139+
SYNC - Everything OK
143140
Saving state to /srv/dev-disk-by-label-DISK1/snapraid.content...
144141
Saving state to /srv/dev-disk-by-label-DISK2/snapraid.content...
145142
Saving state to /srv/dev-disk-by-label-DISK3/snapraid.content...
@@ -151,43 +148,68 @@ Verifying /srv/dev-disk-by-label-DISK4/snapraid.content...
151148
Verified /srv/dev-disk-by-label-DISK4/snapraid.content in 0 seconds
152149
Verified /srv/dev-disk-by-label-DISK3/snapraid.content in 0 seconds
153150
Verified /srv/dev-disk-by-label-DISK2/snapraid.content in 0 seconds
154-
Verified /srv/dev-disk-by-label-DISK1/snapraid.content in 0 seconds
155-
SYNC finished [Sat Jan 9 02:07:49 CET 2021]
151+
Verified /srv/dev-disk-by-label-DISK1/snapraid.content in 0 seconds
156152

157-
### SnapRAID SCRUB [Sat Jan 9 02:07:49 CET 2021]
153+
SYNC finished [Tue 20 Apr 11:43:40 CEST 2021]
158154

155+
### SnapRAID SCRUB [Tue 20 Apr 11:43:40 CEST 2021]
159156
Self test...
160157
Loading state from /srv/dev-disk-by-label-DISK1/snapraid.content...
161158
Using 0 MiB of memory for the file-system.
162159
Initializing...
163160
Scrubbing...
164161
Using 48 MiB of memory for 32 cached blocks.
165-
SCRUB_JOB--Nothing to do
166-
SCRUB finished [Sat Jan 9 02:07:49 CET 2021]
167-
168-
----------
169-
170-
## Postprocessing
171-
172-
SnapRAID SMART report:
162+
DATA1 2% | *
163+
DATA2 18% | **********
164+
parity 0% |
165+
2-parity 0% |
166+
raid 21% | ************
167+
hash 7% | ****
168+
sched 51% | ******************************
169+
misc 0% |
170+
|____________________________________________________________
171+
wait time (total, less is better)
172+
SCRUB - Everything OK
173+
Saving state to /srv/dev-disk-by-label-DISK1/snapraid.content...
174+
Saving state to /srv/dev-disk-by-label-DISK2/snapraid.content...
175+
Saving state to /srv/dev-disk-by-label-DISK3/snapraid.content...
176+
Saving state to /srv/dev-disk-by-label-DISK4/snapraid.content...
177+
Verifying /srv/dev-disk-by-label-DISK1/snapraid.content...
178+
Verifying /srv/dev-disk-by-label-DISK2/snapraid.content...
179+
Verifying /srv/dev-disk-by-label-DISK3/snapraid.content...
180+
Verifying /srv/dev-disk-by-label-DISK4/snapraid.content...
181+
Verified /srv/dev-disk-by-label-DISK4/snapraid.content in 0 seconds
182+
Verified /srv/dev-disk-by-label-DISK3/snapraid.content in 0 seconds
183+
Verified /srv/dev-disk-by-label-DISK2/snapraid.content in 0 seconds
184+
Verified /srv/dev-disk-by-label-DISK1/snapraid.content in 0 seconds
173185

174-
Temp Power Error FP Size
175-
C OnDays Count TB Serial Device Disk
186+
SCRUB finished [Tue 20 Apr 11:43:41 CEST 2021]
176187

177188
----------
178189

179-
- - - SSD 0.0 00000000000000000001 /dev/sdb DATA1
180-
- - - - 0.0 01000000000000000001 /dev/sdc DATA2
181-
- - - SSD 0.0 02000000000000000001 /dev/sdd parity
182-
- - - SSD 0.0 03000000000000000001 /dev/sde 2-parity
183-
0 - - - 0.0 - /dev/sda -
184-
190+
## Postprocessing
191+
SnapRAID Smart
192+
SnapRAID SMART report:
193+
Temp Power Error FP Size
194+
C OnDays Count TB Serial Device Disk
195+
- - - SSD 0.0 00000000000000000001 /dev/sdb DATA1
196+
- - - SSD 0.0 01000000000000000001 /dev/sdc DATA2
197+
- - - - 0.0 02000000000000000001 /dev/sdd parity
198+
- - - SSD 0.0 03000000000000000001 /dev/sde 2-parity
199+
- - - n/a - - /dev/sr0 -
200+
0 - - - 0.0 - /dev/sda -
185201
The FP column is the estimated probability (in percentage) that the disk
186-
is going to fail in the next year.
202+
is going to fail in the next year.
203+
Probability that at least one disk is going to fail in the next year is 0%.
204+
205+
## Restarting Containers [Tue 20 Apr 11:43:41 CEST 2021]
187206

188-
Probability that at least one disk is going to fail in the next year is 0%.
189-
All jobs ended. [Sat Jan 9 02:07:49 CET 2021]
190-
Email address is set. Sending email report to example@example.com [Sat Jan 9 02:07:49 CET 2021]
207+
Restarting Container - Code-server
208+
code-server
209+
Restarting Container - Portainer
210+
portainer
211+
All jobs ended. [Tue 20 Apr 11:43:41 CEST 2021]
212+
Email address is set. Sending email report to yourmail@example.com [Tue 20 Apr 11:43:41 CEST 2021]
191213
```
192214

193215
# Requirements

0 commit comments

Comments
 (0)