summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_mysql.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 09c0b7dd..6ba12feb 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -59,7 +59,7 @@ static bool ssl = false;
59static char *opt_file = NULL; 59static char *opt_file = NULL;
60static char *opt_group = NULL; 60static char *opt_group = NULL;
61static unsigned int db_port = MYSQL_PORT; 61static unsigned int db_port = MYSQL_PORT;
62static bool check_slave = false; 62static bool check_replica = false;
63static bool ignore_auth = false; 63static bool ignore_auth = false;
64static int verbose = 0; 64static int verbose = 0;
65 65
@@ -195,7 +195,7 @@ int main(int argc, char **argv) {
195 } 195 }
196 } 196 }
197 197
198 if (check_slave) { 198 if (check_replica) {
199 /* check the slave status */ 199 /* check the slave status */
200 if (mysql_query(&mysql, "show slave status") != 0) { 200 if (mysql_query(&mysql, "show slave status") != 0) {
201 error = strdup(mysql_error(&mysql)); 201 error = strdup(mysql_error(&mysql));
@@ -329,7 +329,7 @@ int main(int argc, char **argv) {
329 mysql_close(&mysql); 329 mysql_close(&mysql);
330 330
331 /* print out the result of stats */ 331 /* print out the result of stats */
332 if (check_slave) { 332 if (check_replica) {
333 printf("%s %s|%s\n", result, slaveresult, perf); 333 printf("%s %s|%s\n", result, slaveresult, perf);
334 } else { 334 } else {
335 printf("%s|%s\n", result, perf); 335 printf("%s|%s\n", result, perf);
@@ -424,7 +424,7 @@ int process_arguments(int argc, char **argv) {
424 db_port = atoi(optarg); 424 db_port = atoi(optarg);
425 break; 425 break;
426 case 'S': 426 case 'S':
427 check_slave = true; /* check-slave */ 427 check_replica = true; /* check-slave */
428 break; 428 break;
429 case 'n': 429 case 'n':
430 ignore_auth = true; /* ignore-auth */ 430 ignore_auth = true; /* ignore-auth */