Files
webgui/emhttp/plugins/dynamix.apcupsd/apcupsd.notify
Tom Mortensen f9ec00b488 repo reorg
2023-06-02 12:49:33 -07:00

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