pacemaker-replication-agents
pacemaker-replication-agents copied to clipboard
Pacemaker agent: mysql_monitor doesn't check if mysql running properly
Hi,
we use PXC with Pacemaker and mysql_monitor agent. If mysqld was killed (for example with "-9" or OOM) then the PID Check is not absolutely correct. There is a if (line 467) inside the if (line 459). But only an "else" for the outer "if".
I am not very familiar with git functionality. So here is the diff:
This helps: --- /usr/lib/ocf/resource.d/percona/mysql_monitor.old 2014-05-30 16:29:20.941745469 +0000 +++ /usr/lib/ocf/resource.d/percona/mysql_monitor 2014-05-30 16:31:45.555613831 +0000 @@ -537,6 +537,10 @@ ;;
esac
+ else
-
ocf_log $1 "MySQL is not running" -
set_reader_attr 0 -
else ocf_log $1 "MySQL is not running"set_writer_attr 0 fi