diff --git a/Documentation/monitors/MySQL-Monitor.md b/Documentation/monitors/MySQL-Monitor.md index 1bfc06109..7228c1b10 100644 --- a/Documentation/monitors/MySQL-Monitor.md +++ b/Documentation/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 ```