monitower

nimble and trivial monitoring suite
Log | Files | Refs

commit 1e6fb03bc4a58304e178a829871754489fc38461
parent 68c27ce37648deaa1dbbf4f2069ccfa7d92d8c28
Author: Josuah Demangeon <me@josuah.net>
Date:   Thu, 24 Sep 2020 08:57:44 +0200

cleanup logger script

Diffstat:
Mbin/monitower-event | 4++--
Mbin/monitower-run | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/monitower-event b/bin/monitower-event @@ -1,5 +1,5 @@ #!/bin/sh -eu -msgid=$(dd if=/dev/urandom bs=1 count=8 | od -An -tx | tr -cd 0-9a-fA-F) +id=$(dd if=/dev/urandom bs=1 count=8 2>/dev/null | od -An -tx1 | tr -cd 0-9a-f) -exec logger -nc -d "$*" -t monitower -p alert -m "$msgid" +exec logger -nc -d "$*" -t monitower -p alert -m "$id" diff --git a/bin/monitower-run b/bin/monitower-run @@ -24,6 +24,8 @@ check() { set -u +e esac } +[ $# -gt 0 ] || set -- /etc/monitower/check.d/* + spool=/var/spool/monitower IFS=' '