From bf6eea38aa4919f7c789269ca068a6675ba1a635 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 18 Jun 2015 18:13:50 +0300 Subject: [PATCH] Updated documentation. --- monitors/MySQL-Monitor.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/monitors/MySQL-Monitor.md b/monitors/MySQL-Monitor.md index 1bfc06109..7228c1b10 100644 --- a/monitors/MySQL-Monitor.md +++ b/monitors/MySQL-Monitor.md @@ -124,9 +124,11 @@ Here is an example shell script which sends an email to an admin when a server g #!/usr/bin/env bash #This script assumes that the local mail server is configured properly - +#The second argument is the event type +event=${$2/.*=/} +server=${$3/.*=/} message="A server has gone down at `date`." -echo $message|mail -s "A server has gone down" admin@my.org +echo $message|mail -s "The event was $event for server $server." admin@my.org ```