Hi,
the MaxScale MySQL Monitor is able to detect the replication tree of the listed servers db1,db2,db3.
In order to do that the monitor user should have the grants for REPLICATION SLAVE and REPLICATION CLIENT.
You can easily check that with a mysql client connection from maxscale box to dbservers issuing the SHOW SLAVE STATUS query and checking you don’t have any error.
The user should also have proper host permission (% or 127.0.0.1 or IP of maxscale box)
If the user setup is ok, MySQL monitor can fetch the @@server_id variable and other informations from SHOW SLAVE STATUS in order to compute the replication topology tree that may include intermediate master servers, called relay servers.
Using maxadmin or telnet interface you may easily check the current replication setup:
MaxScale> show servers
and you should see Master and Slave status with MasterId and SlaveIDs.
Please check also this document for further informations:
Massimiliano