aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.org> 2019-03-21 17:42:19 +0100
committerGravatar GitHub <noreply@github.com> 2019-03-21 17:42:19 +0100
commit41d98f708a635b2105f1bcb8960ab1dc3d907fd9 (patch)
treecb38d9d84d3c2118d7904a38919afa2744eef22d
parent97bb142b144c7ae128cc69033e620906c95562c8 (diff)
parent2bc4cc99d2c3fdbbd06af862cb0ae1098895f860 (diff)
downloadmonitoring-plugins-41d98f708a635b2105f1bcb8960ab1dc3d907fd9.tar.gz
Merge pull request #1587 from jacobbaungard/check_mysql_allow_socket-H
check_mysql: Allow sockets to be specified to -H
-rw-r--r--plugins/check_mysql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5773afd9..0cba50e6 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);
}