diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
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 d82dea14..77f3b89b 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -71,9 +71,9 @@ main (int argc, char **argv) MYSQL mysql; MYSQL_RES *res; MYSQL_ROW row; - + /* should be status */ - + char *result = NULL; char *error = NULL; char slaveresult[SLAVERESULTSIZE]; @@ -186,7 +186,7 @@ main (int argc, char **argv) mysql_close (&mysql); die (STATE_CRITICAL, "Slave status unavailable\n"); } - + 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]); if (strcmp (row[slave_io_field], "Yes") != 0 || strcmp (row[slave_sql_field], "Yes") != 0) { mysql_free_result (res); |