From 780b2ac5b35cefb044576502352fd4c1feec1479 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Sat, 16 Apr 2022 00:06:21 +0200 Subject: [PATCH] Email titles with emojis --- healthcheck/healthcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck/healthcheck.py b/healthcheck/healthcheck.py index 2e872df..490fbaf 100755 --- a/healthcheck/healthcheck.py +++ b/healthcheck/healthcheck.py @@ -52,9 +52,9 @@ import json NAME = 'healthcheck' VERSION = '0.1' 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_END_SUBJECT_TPL = '{}: {} OK' +EMAIL_END_SUBJECT_TPL = '\u2705 {}: {} OK' EMAIL_END_MESSAGE_TPL = 'Alarm ceased for sensor {} on host {} on {}' # Healthcheck saves the current status (alarms triggered, last run... in this file) STATUS_FILE = '/tmp/healthcheck.tmp'