check_postgres_checkpoint plugin error
Posted
by
Iliyas
on Server Fault
See other posts from Server Fault
or by Iliyas
Published on 2011-12-09T18:23:56Z
Indexed on
2012/06/12
16:42 UTC
Read the original article
Hit count: 209
I am using the check_postgres.pl plugin for Nagios. I am trying to monitor how long since the last checkpoint has been run using the check_postgres_checkpoint option. When I run the command from CLI as root I am getting the output but I am not able to get the output in the Nagios web interface. The error which it shows is,
ERROR: pg_controldata could not read the given data directory: "/opt/PostgreSQL/9.1/data"
It is trying to access the pg_control file in the 'global' directory present beneath the data directory which has only read access to the postgres user.
Can anyone please suggest me how this can be resolved ?
Thanks.
© Server Fault or respective owner