I have two Postgres engines version 9.3 and 9.4 for both and same configuration.
pg_hba.conf is configured for my nagios to have access and it works.
But for one engine, when i have all information when i check the database size mentioning only one dabatase, the script actually check all databases as you can see on the following output.
Command:
Code: Select all
check_postgres.pl -H XXXXXXX--port=5432 --dbuser=xxx--dbname=xxx--dbpass="xxx" --action=database_size --warning=50GB --critical=60GBCode: Select all
POSTGRES_DATABASE_SIZE OK: DB "XXXXX" (host:XXXXXXX) mydatabase: 50831362232 (47 GB) postgres: 6793400 (6634 kB) template0: 6793400 (6634 kB) template1: 6793400 (6634 kB)Code: Select all
ERROR: permission denied for database template0