summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorawiddersheim <awiddersheim@hotmail.com>2013-10-05 14:57:37 (GMT)
committerSam Kottler <shk@linux.com>2014-04-03 17:41:37 (GMT)
commit70314c62fc2d5829662959e528d1b314b73c7fbf (patch)
tree5b8909eca92bef8ca0795149c67c5c392e93aa6e
parent97b0780376eab039984faa52dbd329b898fb159f (diff)
downloadmonitoring-plugins-70314c62fc2d5829662959e528d1b314b73c7fbf.tar.gz
Fix check_mysql.c client options from file
If you don't specify a group or a file to read data from the plugin tries to read from several files that don't exist and no groups.
-rw-r--r--plugins/check_mysql.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 135aa18..4f09e5f 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -476,12 +476,6 @@ validate_arguments (void)
476 if (db_user == NULL) 476 if (db_user == NULL)
477 db_user = strdup(""); 477 db_user = strdup("");
478 478
479 if (opt_file == NULL)
480 opt_file = strdup("");
481
482 if (opt_group == NULL)
483 opt_group = strdup("");
484
485 if (db_host == NULL) 479 if (db_host == NULL)
486 db_host = strdup(""); 480 db_host = strdup("");
487 481