diff options
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index d82dea14..77f3b89b 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -71,9 +71,9 @@ main (int argc, char **argv) | |||
71 | MYSQL mysql; | 71 | MYSQL mysql; |
72 | MYSQL_RES *res; | 72 | MYSQL_RES *res; |
73 | MYSQL_ROW row; | 73 | MYSQL_ROW row; |
74 | 74 | ||
75 | /* should be status */ | 75 | /* should be status */ |
76 | 76 | ||
77 | char *result = NULL; | 77 | char *result = NULL; |
78 | char *error = NULL; | 78 | char *error = NULL; |
79 | char slaveresult[SLAVERESULTSIZE]; | 79 | char slaveresult[SLAVERESULTSIZE]; |
@@ -186,7 +186,7 @@ main (int argc, char **argv) | |||
186 | mysql_close (&mysql); | 186 | mysql_close (&mysql); |
187 | die (STATE_CRITICAL, "Slave status unavailable\n"); | 187 | die (STATE_CRITICAL, "Slave status unavailable\n"); |
188 | } | 188 | } |
189 | 189 | ||
190 | snprintf (slaveresult, SLAVERESULTSIZE, "Slave IO: %s Slave SQL: %s Seconds Behind Master: %s", row[slave_io_field], row[slave_sql_field], row[seconds_behind_field]); | 190 | snprintf (slaveresult, SLAVERESULTSIZE, "Slave IO: %s Slave SQL: %s Seconds Behind Master: %s", row[slave_io_field], row[slave_sql_field], row[seconds_behind_field]); |
191 | if (strcmp (row[slave_io_field], "Yes") != 0 || strcmp (row[slave_sql_field], "Yes") != 0) { | 191 | if (strcmp (row[slave_io_field], "Yes") != 0 || strcmp (row[slave_sql_field], "Yes") != 0) { |
192 | mysql_free_result (res); | 192 | mysql_free_result (res); |