Vote count:
0
I installed Nagios (and NRPE). It seems that everythings works fine. But I don't know how to define the commands for monitoring service on the remote host. I downloaded the postgresql.pl file. When I try:
sudo ./check_postgres.pl --host 107.170.106.199 --dbuser=expman --dbpass=secret -db expman_production --action bloat
It says:
ERROR: Could not find a suitable psql executable
The postgres is defined on the given server, but there is no postgres on the machine where Nagios is. So I guess I have to user something like:
sudo ./check_nrpe -c check_postgres.pl --host 107.170.106.199 --dbuser=expman --dbpass=secret -db expman_production --action bloat
I know that I can't do this since all the arguments needed for postgres are in this form attached to check_nrpe.
Where do I have to install the plugins? On the Nagios or app side? If someone knows, let me also know how to check nginx and unicorn via nrpe.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire