check_postgres icon indicating copy to clipboard operation
check_postgres copied to clipboard

dbservice and dbpass options dont work along

Open elyrtan opened this issue 11 years ago • 2 comments

Hi, I've just noticed a bug.

./check_postgres.pl --dbservice="theService_in_pg_service.conf"--dbuser=theUser --dbpass=heyhey --action=connection Use of uninitialized value in printf at ./check_postgres.pl line 1748. Use of uninitialized value in printf at ./check_postgres.pl line 1748. Password for user theUser:

So it seems that the script doesnt retrieve the password given as a parameter when using dbservice.

elyrtan avatar Dec 16 '13 15:12 elyrtan

It seems that the same is true for the --dbname and --port parameters. When using a service the other connection parameters are ignored.

duursma avatar May 12 '22 20:05 duursma