The failover and switchover scripts need to be provided with credentials using which the scripts can access and make modifications to the affected servers. The scripts will use the same credentials as the MaxScale monitor does.
In the MaxScale configuration file it is possible to provide credentials for the monitor, to be used with all servers, and also servers specific monitor credentials.
A new script variable, e.g. CREDENTIALS could be introduced that would contain the credentials for all nodes.
When executed, the command line would look like: