diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-02 15:11:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 15:11:21 +0100 |
| commit | df1e9e975f69c8f7965bab91684870fe509739c6 (patch) | |
| tree | 526b0c77c524b2219d5a48fd78b8302f055a4a5b /plugins/check_mysql.c | |
| parent | 6246b8f1830e8a375bc656deafd28aab715b4fd9 (diff) | |
| parent | 1a3a715702a5b6709fed2a1eb53ec644c9968057 (diff) | |
| download | monitoring-plugins-df1e9e975f69c8f7965bab91684870fe509739c6.tar.gz | |
Merge branch 'master' into mailq-add-config-dir
Diffstat (limited to 'plugins/check_mysql.c')
| -rw-r--r-- | plugins/check_mysql.c | 3 |
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) | |||
| 379 | if (is_host (optarg)) { | 379 | if (is_host (optarg)) { |
| 380 | db_host = optarg; | 380 | db_host = optarg; |
| 381 | } | 381 | } |
| 382 | else if (*optarg == '/') { | ||
| 383 | db_socket = optarg; | ||
| 384 | } | ||
| 382 | else { | 385 | else { |
| 383 | usage2 (_("Invalid hostname/address"), optarg); | 386 | usage2 (_("Invalid hostname/address"), optarg); |
| 384 | } | 387 | } |
