Make it look nicer in email
This commit is contained in:
parent
5eb2275893
commit
6aa724b8b0
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ if [ "$status" != "ONLINE" ]; then
|
|||
echo "Subject: $EMAIL_SUBJECT"
|
||||
echo
|
||||
echo "$ups_hostname is offline. Please check the status."
|
||||
echo "Power: $battery_percentage % && Remaining Time: $remaining_runtime Minutes"
|
||||
echo "Current Level: $battery_percentage%"
|
||||
echo "Estimated time remaining: $remaining_runtime"
|
||||
} | ssmtp -vvv $EMAIL_TO
|
||||
else
|
||||
echo "APC UPS is online."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue