From 2bc4cc99d2c3fdbbd06af862cb0ae1098895f860 Mon Sep 17 00:00:00 2001 From: Robin Sonefors Date: Fri, 10 May 2013 17:21:34 +0200 Subject: check_mysql: Allow sockets to be specified to -H The help text says that -H accepts a "unix socket (must be an absolute path)". Now that actually corresponds to reality. Signed-off-by: Robin Sonefors diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 5773afd..0cba50e 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -379,6 +379,9 @@ process_arguments (int argc, char **argv) if (is_host (optarg)) { db_host = optarg; } + else if (*optarg == '/') { + db_socket = optarg; + } else { usage2 (_("Invalid hostname/address"), optarg); } -- cgit v0.10-9-g596f