mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
7 lines
280 B
Plaintext
Executable File
7 lines
280 B
Plaintext
Executable File
#
|
|
# Send system notify message from apcupsd
|
|
#
|
|
read MESSAGE
|
|
[[ "$MESSAGE" == *restored* || "$MESSAGE" == *returned* ]] && LEVEL=normal || LEVEL=alert
|
|
/usr/local/emhttp/webGui/scripts/notify -l "/Settings/UPSsettings" -e "Unraid Server Alert" -s "UPS Alert" -d "$MESSAGE" -i $LEVEL
|