mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-02 15:48:59 -04:00
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 <robin.sonefors@op5.com>
This commit is contained in:
parent
97bb142b14
commit
2bc4cc99d2
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue