Renamed node to initiator in the arguments a monitor calls the script.
This commit is contained in:
@ -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.
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user