215 Commits

Author SHA1 Message Date
Markus Makela
ba32596603 Fixed MM monitor segfault on crash. 2015-08-07 14:00:55 +03:00
Martin Brampton
edd2688e71 Fix memory leak in MySQL monitor. 2015-07-19 16:54:13 +01:00
Markus Makela
b756690123 Merge branch 'release-1.2' into develop 2015-07-15 11:38:27 +03:00
Markus Makela
96edaca90c Disabled C99. 2015-07-14 12:14:01 +03:00
Markus Makela
19fe7127d5 Added galeramon server priorities. 2015-07-13 14:39:04 +03:00
Markus Makela
2580738509 Merge branch 'develop' into priority_galeramon 2015-07-07 20:45:54 +03:00
Markus Makela
058f49eb88 Added error message about MySQL versions lower than 5.5 and monitors without the 'mysql51_replication' enabled. 2015-07-07 20:14:57 +03:00
Markus Makela
c8173ec4f7 Added missing return value. 2015-07-02 10:00:38 +03:00
Markus Makela
2b0f0b89ab Added master server id to mysql 5.1 monitoring. 2015-07-01 19:13:03 +03:00
Markus Makela
8a0b399896 Added code for MySQL 5.1 replication detection. 2015-06-30 21:37:29 +03:00
Markus Makela
6f343ff57b Fix to MXS-227: https://mariadb.atlassian.net/browse/MXS-227
Fixed memory leak.
2015-06-29 19:17:12 +03:00
Markus Makela
0062d9d2b7 Version errors for SHOW SLAVE STATUS now only print once. 2015-06-29 10:24:16 +03:00
Markus Makela
5c7a30e9fe Added more error logging. 2015-06-28 10:43:06 +03:00
Markus Makela
113fb4c33b Fix to MXS-209: https://mariadb.atlassian.net/browse/MXS-209
Added missing checks for proper column count on query result.
2015-06-28 08:43:05 +03:00
Markus Makela
e5d9abbdcb Fixes to Coverity defects. 2015-06-25 06:01:33 +03:00
Markus Makela
c3aa5beeb4 Added missing initialization from MM monitor. 2015-06-21 19:32:19 +03:00
Markus Makela
f6369a1661 Changed from server unique name to ip:port in monitor script initiaion. 2015-06-18 18:03:55 +03:00
Markus Makela
fe2062b5b0 Fixed a regression in mysql_mon.c which caused a memory leak 2015-06-11 19:50:51 +03:00
Markus Makela
3fb1213dee Added more error logging when monitor scripts fail. 2015-06-10 06:09:42 +03:00
Markus Makela
5f076b81d4 Merge branch 'install_dir_change' into develop
Conflicts:
	CMakeLists.txt
	Documentation/Tutorials/Administration-Tutorial.md
	log_manager/CMakeLists.txt
	server/core/CMakeLists.txt
	server/core/gateway.c
	server/core/maxkeys.c
	server/core/maxpasswd.c
	server/modules/filter/test/CMakeLists.txt
	server/modules/routing/CMakeLists.txt
2015-05-26 13:34:39 +03:00
Markus Makela
9c461450e2 Fixes to Coverity defects. 2015-05-22 05:36:58 +03:00
Markus Makela
ac55f7c6fe Merge branch 'MXS-121' into develop 2015-05-21 17:53:01 +03:00
Markus Makela
3301ffc76d Added different log message when the script is missing for a monitor. 2015-05-21 17:40:33 +03:00
Markus Makela
91bc7b2792 Added missing spinlock calls to all monitors. 2015-05-21 11:41:11 +03:00
Markus Makela
7dbc021149 Added more logging when a monitor script cannot be executed. 2015-05-20 16:16:49 +03:00
Markus Makela
8f20d23d4c Added missing function prototype to mmmon.c 2015-05-19 19:20:59 +03:00
Markus Makela
c4f51c0b8c Fixed a possible bug with multiple monitors monitoring the same servers. 2015-05-19 15:42:11 +03:00
Markus Makela
1403b3dfeb Fixed old header names form monitor_common.h 2015-05-19 14:40:24 +03:00
Markus Makela
a73df62ebd Renamed mon_exec files to externcmd. 2015-05-18 18:34:43 +03:00
Markus Makela
b94f494d80 Added filtering of monitor events. 2015-05-14 12:05:58 +03:00
Markus Makela
1aba13177b Added ndbclustermon and mmmon headers. 2015-05-11 20:35:54 +03:00
Markus Makela
1d0740c1c1 Renamed node to initiator in the arguments a monitor calls the script. 2015-05-09 21:16:35 +03:00
Markus Makela
9845923f81 Added full implementation of MXS-121 to all monitors. 2015-05-09 17:37:34 +03:00
Markus Makela
0c15812340 Moved common functions to monitor_common.c 2015-05-09 14:29:26 +03:00
Markus Makela
8af302d785 Removed unused variables from monitors. 2015-05-09 14:19:25 +03:00
Markus Makela
6e1a69df7e Changed callable monitor scripts to be called with command line parameters instead of having multiple scripts.
This reduces the amount of guesswork the monitor has to do when executing the script and places that burden on the called script.
2015-05-09 14:03:52 +03:00
Markus Makela
788c0b3428 Merge branch 'develop' into MXS-121 2015-05-09 12:09:17 +03:00
Markus Makela
49d5409dcb Merge branch 'develop' into MXS-121
Conflicts:
	server/modules/monitor/mysql_mon.c
2015-05-09 04:49:06 +03:00
Markus Makela
5a3ed0de9b Moved common monitor functionality to the MONITOR type
Common variables, like databases, timeouts and interval, and functionality was moved to the MONITOR type.
This reduces the redundant functionality of the monitor API's functions like registerServer and setInterval.
2015-05-09 04:47:17 +03:00
Markus Makela
fdd5a10478 Fixed a memory leak in all the monitors when a failed mysql_ping to the database caused a reinitialization of MYSQL* connection. 2015-05-07 11:42:14 +03:00
Markus Makela
da6d597987 Moved common monitor structures and definitions to a separate header and added master down script to galeramon. 2015-05-07 05:56:13 +03:00
Markus Makela
cad59abbd1 Added parameters for commands and changed the execv call to execvp. 2015-05-05 22:36:47 +03:00
Markus Makela
565eeb8f9d Merge branch 'develop' into mon_script_test 2015-05-05 18:30:08 +03:00
counterpoint
9d9ebc5f67 Correct date in revision history, add to revision history for disableMasterRoleSetting. 2015-05-05 11:07:23 +01:00
counterpoint
8647b30184 Merge remote-tracking branch 'origin/develop' into MXS-105
Conflicts (resolved):
	server/modules/routing/schemarouter/schemarouter.c
2015-05-05 10:54:09 +01:00
Markus Makela
c0f14dd33b Merge branch 'develop' into mon_script_test 2015-05-04 09:14:04 +03:00
Markus Makela
6c904b164a Fix to bug MXS-25
A failed master no longer generates the "Info: A Master Server is now available" message.
2015-04-30 11:28:07 +03:00
MassimilianoPinto
1755706ada Master/Slave detection based on variable only
Master/Slave role setting is now based on variable value only.

Replication is checked and, if working, master_id, slave_id are saved
into server struct
2015-04-29 10:50:32 +02:00
Markus Makela
398b5dfe12 Added node priorities to galeramon. The master node is selected with the lowest priority parameter in the configuration. 2015-04-28 21:32:56 +03:00
Markus Makela
17a7b2addb Updated more variables. 2015-04-26 20:08:27 +03:00