From 1d0740c1c17a3b7129bcc18e7b0618962fb7ea31 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Sat, 9 May 2015 21:16:35 +0300 Subject: [PATCH] Renamed node to initiator in the arguments a monitor calls the script. --- Documentation/monitors/MySQL-Monitor.md | 2 +- server/modules/monitor/monitor_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/monitors/MySQL-Monitor.md b/Documentation/monitors/MySQL-Monitor.md index ca04d5ae8..be8a7b20c 100644 --- a/Documentation/monitors/MySQL-Monitor.md +++ b/Documentation/monitors/MySQL-Monitor.md @@ -84,7 +84,7 @@ script=/home/user/script.sh This script will be called with the following command line arguments. ``` - --event= --node= --nodelist= + --event= --initiator= --nodelist= ``` Here is a table of all possible event names and their descriptions. diff --git a/server/modules/monitor/monitor_common.c b/server/modules/monitor/monitor_common.c index 37a8e6de2..352626984 100644 --- a/server/modules/monitor/monitor_common.c +++ b/server/modules/monitor/monitor_common.c @@ -295,7 +295,7 @@ void monitor_launch_script(MONITOR* mon,MONITOR_SERVERS* ptr, char* script) EXTERNCMD* cmd; snprintf(argstr,PATH_MAX + MON_ARG_MAX, - "%s --event=%s --node=%s --nodelist=", + "%s --event=%s --initiator=%s --nodelist=", script, mon_get_event_name(ptr), ptr->server->unique_name);