]> Sergey Matveev's repositories - sgmon.git/blob - notify-bad.sh
New curl requires brackets
[sgmon.git] / notify-bad.sh
1 #!/bin/sh -e
2
3 . "$SGMONDIR"/rc
4 (
5     echo stdout:
6     cat state/stdout
7     if [ -s state/stderr ] ; then
8         echo stderr:
9         cat state/stderr
10     fi
11 ) |
12 mailx -s "Failed $SGMONSRV" "$NOTIFY_EMAIL"