Reputation: 1
I installed Nagios to my local server, and am monitoring a CentOS server.
All the plugins (nagios plugins and nrpe) are installed too, and working in local, but not via my server. Generic services are monitored well but others (local services) aren't working. Statut information shows: CHECK_NRPE STATE CRITICAL: Socket timeout after 30 seconds
.
I've installed nrpe in my remote host and added commands in nrpe.cfg. In my nagios server, I defined those commands in my server's configuration file.
When I check those commands in my centOS server, it works well. For exemple when I type:
./check_procs -w 250 -c 300
prompt shows:
PROCS AVERTISSEMENT: 284 processus | procs=284;250;300;0;
Or the command: ./check_nrpe -H localhost
It shows: NRPE v3.2.1
Everything seems working, but if I try: ./check_nrpe -H monitoredserver
, it doesn't work.
Also, in nagios web interface, every local service in monitored server shows: CHECK_NRPE STATE CRITICAL: Socket timeout after 30 seconds
.
Upvotes: 0
Views: 3909
Reputation: 1326
Please verify common mistakes which you can have:
Your NRPE daemon is not started on remote server
Run service nrpe status
on remote server and verify NRPE state.
Test your network connection
Run telnet monitoredserver 5666
from Nagios server and test your connection. If this command fail, then you have firewall between these servers.
Upvotes: 0