Email titles with emojis

This commit is contained in:
Daniele Verducci (Slimpenguin) 2022-04-16 00:06:21 +02:00
parent 56c1e01856
commit 780b2ac5b3

View File

@ -52,9 +52,9 @@ import json
NAME = 'healthcheck' NAME = 'healthcheck'
VERSION = '0.1' VERSION = '0.1'
DESCRIPTION = 'A simple server monitoring software' DESCRIPTION = 'A simple server monitoring software'
EMAIL_START_SUBJECT_TPL = '{}: {} health alarm!' EMAIL_START_SUBJECT_TPL = '\U0001F6A8 {}: {} ALARM!'
EMAIL_START_MESSAGE_TPL = 'Alarm for sensor {} on host {} on {}: {}' EMAIL_START_MESSAGE_TPL = 'Alarm for sensor {} on host {} on {}: {}'
EMAIL_END_SUBJECT_TPL = '{}: {} OK' EMAIL_END_SUBJECT_TPL = '\u2705 {}: {} OK'
EMAIL_END_MESSAGE_TPL = 'Alarm ceased for sensor {} on host {} on {}' EMAIL_END_MESSAGE_TPL = 'Alarm ceased for sensor {} on host {} on {}'
# Healthcheck saves the current status (alarms triggered, last run... in this file) # Healthcheck saves the current status (alarms triggered, last run... in this file)
STATUS_FILE = '/tmp/healthcheck.tmp' STATUS_FILE = '/tmp/healthcheck.tmp'