initial commit
This commit is contained in:
commit
340b87362d
8
Readme.md
Normal file
8
Readme.md
Normal file
@ -0,0 +1,8 @@
|
||||
## setup ntfy
|
||||
|
||||
### mdadm
|
||||
- add line with 'PROGRAM' to your existing mdadm config, usually in /etc/mdadm/mdadm.cfg
|
||||
- place ''mdadm-notify.sh'' in a folder specified in the config, eg. /usr/local/bin
|
||||
- make the script executable, with eg. ''chmod +x /usr/local/bin/mdadm-notiy.sh''
|
||||
|
||||
|
5
mdadm-notify.sh
Executable file
5
mdadm-notify.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
curl -H "t: mdadm odroidh2" -d "$1 \
|
||||
$2 \
|
||||
$3" \
|
||||
ntfy.sh/my_secret_channel_name > /dev/null 2>&1
|
26
mdadm.conf
Normal file
26
mdadm.conf
Normal file
@ -0,0 +1,26 @@
|
||||
# mdadm.conf
|
||||
#
|
||||
# !NB! Run update-initramfs -u after updating this file.
|
||||
# !NB! This will ensure that initramfs has an uptodate copy.
|
||||
#
|
||||
# Please refer to mdadm.conf(5) for information about this file.
|
||||
#
|
||||
|
||||
# by default (built-in), scan all partitions (/proc/partitions) and all
|
||||
# containers for MD superblocks. alternatively, specify devices to scan, using
|
||||
# wildcards if desired.
|
||||
#DEVICE partitions containers
|
||||
|
||||
# automatically tag new arrays as belonging to the local system
|
||||
HOMEHOST <system>
|
||||
|
||||
# instruct the monitoring daemon where to send mail alerts
|
||||
#MAILADDR root
|
||||
|
||||
PROGRAM /usr/local/bin/mdadm-notify.sh
|
||||
|
||||
# definitions of existing MD arrays
|
||||
ARRAY /dev/md/0 metadata=1.2 UUID=7033fc0b:aba014cc:80714c0a:d227f7ea name=odroidh2:0
|
||||
ARRAY /dev/md/odroidh2:1 metadata=1.2 UUID=d0664ebc:fd881bf6:35ffbd86:895c292d name=odroidh2:1
|
||||
|
||||
# This configuration was auto-generated on Tue, 06 Feb 2024 19:42:05 +0100 by mkconf
|
Loading…
x
Reference in New Issue
Block a user