[check_postgres] check_postgres - NRPE - .pgpass file

Sureshkumar Rajayokkian sureshkraja at gmail.com
Mon Nov 10 11:33:45 UTC 2014


Hello,

Is it possible to use .pgpass file for postgres check over NRPE check?
I am getting error when I try below command but it works fine when passing
clear text password.

 [root at nagios_server01 ~]# /usr/local/nagios/libexec/check_nrpe -H
PostgresDB.domain.com -t 30 -c check_postgres -a '--dbuser=nagios
--dbpass='/root/.pgpass' --action=connection'

Please help me to resolve the issue

Note: .pgpass has been placed under /root on PostgresDB.domain.com.

Best Regards,
Suresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.endcrypt.com/pipermail/check_postgres/attachments/20141110/31435d55/attachment.html>


More information about the Check_postgres mailing list