Renamed node to initiator in the arguments a monitor calls the script.

This commit is contained in:
Markus Makela
2015-05-09 21:16:35 +03:00
parent 49faa88d14
commit 1d0740c1c1
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ script=/home/user/script.sh
This script will be called with the following command line arguments. This script will be called with the following command line arguments.
``` ```
<name of the script> --event=<event type> --node=<server whose state changed> --nodelist=<list of all servers> <name of the script> --event=<event type> --initiator=<server whose state changed> --nodelist=<list of all servers>
``` ```
Here is a table of all possible event names and their descriptions. Here is a table of all possible event names and their descriptions.

View File

@ -295,7 +295,7 @@ void monitor_launch_script(MONITOR* mon,MONITOR_SERVERS* ptr, char* script)
EXTERNCMD* cmd; EXTERNCMD* cmd;
snprintf(argstr,PATH_MAX + MON_ARG_MAX, snprintf(argstr,PATH_MAX + MON_ARG_MAX,
"%s --event=%s --node=%s --nodelist=", "%s --event=%s --initiator=%s --nodelist=",
script, script,
mon_get_event_name(ptr), mon_get_event_name(ptr),
ptr->server->unique_name); ptr->server->unique_name);