check_postgres
check_postgres copied to clipboard
dbservice and dbpass options dont work along
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.
It seems that the same is true for the --dbname and --port parameters. When using a service the other connection parameters are ignored.