Changed callable monitor scripts to be called with command line parameters instead of having multiple scripts.

This reduces the amount of guesswork the monitor has to do when executing the script and places that burden on the called script.
This commit is contained in:
Markus Makela
2015-05-09 14:03:52 +03:00
parent 788c0b3428
commit 6e1a69df7e
3 changed files with 123 additions and 20 deletions

View File

@ -56,7 +56,7 @@ typedef struct {
int availableWhenDonor; /**< Monitor flag for Galera Cluster Donor availability */
int disableMasterRoleSetting; /**< Monitor flag to disable setting master role */
MONITOR_SERVERS *master; /**< Master server for MySQL Master/Slave replication */
EXTERNCMD* master_down_script;
char* script; /*< Script to call when state changes occur on servers */
} MYSQL_MONITOR;
#endif