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.
This commit is contained in:
Markus Makela
2015-05-09 14:03:52 +03:00
parent 788c0b3428
commit 6e1a69df7e
3 changed files with 123 additions and 20 deletions

View File

@ -190,7 +190,8 @@ monitorAddServer(MONITOR *mon, SERVER *server)
db->con = NULL;
db->next = NULL;
db->mon_err_count = 0;
db->mon_prev_status = 0;
/** Server status is uninitialized */
db->mon_prev_status = -1;
/* pending status is updated by get_replication_tree */
db->pending_status = 0;