Sometimes the corosync node name is different form the hostname.
For mysql_prm there is a specific attriute. Not so for myql_monitor.
In my case using crm_mon -n instean of hostname -n solves the problem and permits to set the attributs with the command crm_attribute -N