diff options
Diffstat (limited to 'plugins/check_mysql.c')
| -rw-r--r-- | plugins/check_mysql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 216626bc..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 | } |
| @@ -444,10 +447,10 @@ process_arguments (int argc, char **argv) | |||
| 444 | break; | 447 | break; |
| 445 | case 'V': /* version */ | 448 | case 'V': /* version */ |
| 446 | print_revision (progname, NP_VERSION); | 449 | print_revision (progname, NP_VERSION); |
| 447 | exit (STATE_OK); | 450 | exit (STATE_UNKNOWN); |
| 448 | case 'h': /* help */ | 451 | case 'h': /* help */ |
| 449 | print_help (); | 452 | print_help (); |
| 450 | exit (STATE_OK); | 453 | exit (STATE_UNKNOWN); |
| 451 | case 'v': | 454 | case 'v': |
| 452 | verbose++; | 455 | verbose++; |
| 453 | break; | 456 | break; |
