#!/bin/sh reftime=$(TZ=UTC date --date '1 hour ago' +'%Y-%m-%dT%H:%M:%S') nmsgs=$(awk "(\$1 > \"${reftime}\" && \$2 == \"cherrypie\")" /var/log/syslog | wc -l) myname="$(whoami)" if [[ $nmsgs = 0 ]]; then echo "no syslog push from cherrypie since $reftime" fi