################################################################
## Drop by Chef, recipe mysql, template mysqlchk.erb
################################################################

# default: on 
# description: mysqlchk 
service mysqlchk 
{ 
# this is a config for xinetd, place it in /etc/xinetd.d/
        disable = no 
        flags           = REUSE 
        socket_type     = stream 
        port            = 9200 
        wait            = no 
        user            = nobody 
	server          = /usr/bin/clustercheck
	server_args 	= root <%=node['mysql']['server_root_password']%>
	log_on_failure  += USERID 
	only_from       = <%= @lb.attribute?('cloud') && @lb['cloud']['local_ipv4'] ? @lb['cloud']['local_ipv4'] : @lb['ipaddress']%> 
	per_source      = UNLIMITED 
} 


Add check from the access point only (haproxy or other)
Add check from the access point only (haproxy or other)
