From 28b9f0736e43d188abc8a5b63eee1e428cca2935 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 15 Oct 2025 09:21:37 +0300 Subject: Add pylogsentinel --- templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 (limited to 'templates/usr_local_bin_pylogsentinel-batch-email.sh.j2') diff --git a/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 b/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 new file mode 100644 index 0000000..d28efd9 --- /dev/null +++ b/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 @@ -0,0 +1,14 @@ +#!/bin/sh + +FILE=/tmp/pylogsentinel.daily + +if [ ! -f "$FILE" ]; then + echo "Nothing to do" + exit 0 +fi + +echo "Sending email" +cat "$FILE" | mail -s "pylogsentinel alert batch" root + +echo "Removing batch file" +rm "$FILE" -- cgit v1.3