[check_postgres] check_postgres - ERROR: Could not find a suitable psql executable

Greg Sabino Mullane greg at endpoint.com
Fri Nov 14 21:13:28 UTC 2014


On Tue, Nov 11, 2014 at 08:23:51AM -0500, Sureshkumar Rajayokkian wrote:
...
> [rsk at Nagios_server01 ~]$ sudo /usr/local/nagios/libexec/check_nrpe -H
> Postgres01 -t 30 -c check_postgres -a '--dbuser=user01 --dbpass=P at ssw0rd
> --action=connection'
> ERROR: Could not find a suitable psql executable
...
> *Note: Both the servers have psql.*

Login as the user running nrpe and try doing: which psql

It should be returning the path to your locally installed psql 
executable. If not, try passing the --PSQL argument and let 
us know exactly what the output is. Make sure you give it a 
fully qualified path, e.g. --PSQL=/usr/local/bin/psql

-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Digital signature
URL: <https://mail.endcrypt.com/pipermail/check_postgres/attachments/20141114/e52b800b/attachment.sig>


More information about the Check_postgres mailing list