CHECK_NRPE: Socket timeout after 10 seconds
Posted: Sun Jun 12, 2016 5:57 pm
Hi Guys,
I have the following situation.
I've installed and configured the following postgresql plugin https://exchange.nagios.org/directory/P ... es/details for monitoring postgresql on CentOS 6.8 64 bit.
I've configured NRPE with some commands as follow: (host to be monitored)
command[check_pg_connection]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action connection
command[check_pg_dbstats]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action dbstats
command[check_pg_bloat]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action bloat
command[check_pg_database_size]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action database_size --warning='30 GB' --critical='35 GB'
There is no firewall running on the server with postgresql:
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
NRPE is listening :
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
With nmap I've verified that the port is opened:
nmap 192.168.151.205 -p 5666
Starting Nmap 5.51 ( http://nmap.org ) at 2016-06-12 14:54 BOT
Nmap scan report for 192.168.151.205
Host is up (0.000078s latency).
PORT STATE SERVICE
5666/tcp open nrpe
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
Testing NRPE from Nagios XI server, I get this:
./check_nrpe -H 192.168.151.205 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
So, it means it's working, but I try one of the commands I've defined in the postgresql server, I got this:
./check_nrpe -H 192.168.151.205 -c check_pg_connection
CHECK_NRPE: Socket timeout after 10 seconds.
For solving the issue, I followed the procedure from here https://assets.nagios.com/downloads/nag ... utions.pdf
But in my case it didn't work.
Any idea about how to solve this issue?
regards,
I have the following situation.
I've installed and configured the following postgresql plugin https://exchange.nagios.org/directory/P ... es/details for monitoring postgresql on CentOS 6.8 64 bit.
I've configured NRPE with some commands as follow: (host to be monitored)
command[check_pg_connection]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action connection
command[check_pg_dbstats]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action dbstats
command[check_pg_bloat]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action bloat
command[check_pg_database_size]=/usr/local/nagios/libexec/check_postgres.pl -H localhost -db template1 -u postgres --action database_size --warning='30 GB' --critical='35 GB'
There is no firewall running on the server with postgresql:
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
NRPE is listening :
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
With nmap I've verified that the port is opened:
nmap 192.168.151.205 -p 5666
Starting Nmap 5.51 ( http://nmap.org ) at 2016-06-12 14:54 BOT
Nmap scan report for 192.168.151.205
Host is up (0.000078s latency).
PORT STATE SERVICE
5666/tcp open nrpe
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
Testing NRPE from Nagios XI server, I get this:
./check_nrpe -H 192.168.151.205 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
So, it means it's working, but I try one of the commands I've defined in the postgresql server, I got this:
./check_nrpe -H 192.168.151.205 -c check_pg_connection
CHECK_NRPE: Socket timeout after 10 seconds.
For solving the issue, I followed the procedure from here https://assets.nagios.com/downloads/nag ... utions.pdf
But in my case it didn't work.
Any idea about how to solve this issue?
regards,