Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 890 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 890 Bytes

Storage Notifier

Storage Notifier is a simple Discord webhook script that reports disk usage for specified disks on a local system.

Usage

One Time Usage:

./storage_notifier.sh -n "kujira.mainnet.snapshot" -b "Crypto Chemistry Storage Notifier" -w "webhook_url" -p 50 -d "/dev/sdc" -u 12345678901234567890

Configuring a Service

Edit the storage_notifier.service and storage_notifier.timer units as needed.

Symlink to systemd services

ln -s storage_notifier.timer /etc/systemd/system/storage_notifier.timer
ln -s storage_notifier.timer /etc/systemd/system/storage_notifier.timer

Enable services

systemctl enable storage_notifier.timer 
systemctl enable storage_notifier.service 

Start timer

systemctl start storage_notifier.timer 

Example Notification

discord notification example