I have one master and many slaves and want to promote one slave to become a second master. Does this work?
Yes. Set up master-master replication (don’t forget log_slave_updates, etc.), then change mmm config and finally restart agents/monitor.
FATAL Listener: Can’t create socket!
When I try to start the agent these messages are repeatedly logged:
2009/10/30 20:08:59 FATAL Child exited with exitcode 99, restarting
2009/10/30 20:08:59 FATAL Listener: Can't create socket!
→ For some reason the agent tries to listen on an IP that is not configured on the host. Check your configuration and be sure that you have not mistyped anything. Be sure to also check the this configuration directive.
Is it possible to monitor multiple clusters from the same monitoring host?
Yes, you can run multiple instances of mmm_mond on the same host. You have to copy the init-script and adjust the ‘CLUSTER’ variable (e.g. CLUSTER=’C1’). The config file for this second instance should be named mmm_mon_C1.conf instead of mmm_mon.conf. You also have to adjust some things in the section of the config (choose a unique port number, default is 9988):
pid_path /var/run/mmmd_mon_C1.pid
port 9990
To control this cluster you can use mmm_control @C1 - e.g.:
mmm_control @C1 show
FATAL Configuration file /etc/mysql-mmm/mmm_mon.conf is world writable!
mon:/etc/mysql-mmm # chmod 640 mmm_common.conf
mon:/etc/mysql-mmm # ll
total 16
-rw-r----- 1 root root 42 Sep 2 10:38 mmm_agent.conf
-rw-r----- 1 root root 1131 Sep 2 08:19 mmm_common.conf
-rw-r----- 1 root root 321 Sep 1 14:12 mmm_mon.conf
-rw-r----- 1 root root 1293 Sep 1 14:12 m