Nagios "check_pgactivity" failed
Posted: Wed Oct 24, 2018 3:45 am
Hi
I'm trying to monitor several Postgres 10 servers in my Nagios, and I downloaded the "check_pgactivity" plugin from https://exchange.nagios.org/directory/P ... ty/details
I have seen that this plugin is valid for Postgres version 10.
I have configured the check in the postgres server as follows:
command [check_pgactivity_connection] = / usr / lib / nagios / plugins / check_pgactivity -h localhost -s connection
I make the NRPE call from the Nagios server in the following way:
[root @ GESNAG00] # / usr / local / nagios / libexec / check_nrpe -H 10.203.227.3 -c check_pgactivity_connection
Command output:
CHECK_PGACTIVITY UNKNOWN: Query failed!
Password:
psql: fe_sendauth: no password supplied
If I launch this check locally on the Postgres server, it asks for a password from the "postgres" user, which is the default user.
In the documentation I do not see by any means how to configure the authentication of the user that happened to him by parameter, either the user "postgres" by defect or another user that has been created.
Thank you very much in advance.
I'm trying to monitor several Postgres 10 servers in my Nagios, and I downloaded the "check_pgactivity" plugin from https://exchange.nagios.org/directory/P ... ty/details
I have seen that this plugin is valid for Postgres version 10.
I have configured the check in the postgres server as follows:
command [check_pgactivity_connection] = / usr / lib / nagios / plugins / check_pgactivity -h localhost -s connection
I make the NRPE call from the Nagios server in the following way:
[root @ GESNAG00] # / usr / local / nagios / libexec / check_nrpe -H 10.203.227.3 -c check_pgactivity_connection
Command output:
CHECK_PGACTIVITY UNKNOWN: Query failed!
Password:
psql: fe_sendauth: no password supplied
If I launch this check locally on the Postgres server, it asks for a password from the "postgres" user, which is the default user.
In the documentation I do not see by any means how to configure the authentication of the user that happened to him by parameter, either the user "postgres" by defect or another user that has been created.
Thank you very much in advance.