diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_mysql.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
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 d82dea1..77f3b89 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); |