Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pacemaker agent: mysql_monitor doesn't check if mysql running properly #11

Open
mjaepel opened this issue May 30, 2014 · 0 comments
Open

Comments

@mjaepel
Copy link

mjaepel commented May 30, 2014

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
    
  •           set_writer_attr 0
       fi
    
    else
    ocf_log $1 "MySQL is not running"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant