-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
ID: 81
Version: unspecified
Date: 2011-07-28 10:39 EDT
Author: Peter Eisentraut (peter_e@gmx.net)
When using the --PSQL
option, the path check is too restrictive, for example:
./check_postgres.pl --PSQL=/usr/lib/postgresql/8.4/bin/psql --action=connection
--db=test
ERROR: Invalid psql argument: must be full path to a file named psql
The code is fairly simple-minded about this:
$PSQL =~ m{^/[\w\d\/]*psql$}
I would just simplify this to something like
$PSQL =~ m{^/.*/psql$}
(or remove it altogether). Consider typical paths on Windows (bug 36).
Metadata
Metadata
Assignees
Labels
No labels