Files
webgui/plugins/dynamix.apcupsd/apcupsd.notify
2022-09-16 23:41:41 +02: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