mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
check_pgsql: Allow UNIX socket directories as hostname as well.
PostgreSQL accepts the directory name of its UNIX socket as hostname as well, e.g. /var/run/postgresql/.
This commit is contained in:
parent
f3e2ebd974
commit
a241ab0b9d
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ process_arguments (int argc, char **argv)
|
|||
query_warning = optarg;
|
||||
break;
|
||||
case 'H': /* host */
|
||||
if (!is_host (optarg))
|
||||
if ((*optarg != '/') && (!is_host (optarg)))
|
||||
usage2 (_("Invalid hostname/address"), optarg);
|
||||
else
|
||||
pghost = optarg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue