nrpe error
nrpe error
I just set up the linux nrpe clint and wizard on my server. Problem is I am getting the following error:
CHECK_NRPE: Error receiving data from daemon.
CHECK_NRPE: Error receiving data from daemon.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nrpe error
How did you install NRPE, there are multiple ways.
Did you follow the Linux agent guide,
http://library.nagios.com/library/produ ... inux-agent
or use another method?
Did you follow the Linux agent guide,
http://library.nagios.com/library/produ ... inux-agent
or use another method?
Re: nrpe error
yes, I used that guide. I also copied and pasted the text into putty. How would I uninstall the agent and try again?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: nrpe error
You don't need to uninstall the agent - you can just reinstall it. Before you do this, see if you have xinetd installed:
After you make sure it's installed, reinstall the linux agent following our documentation. Watch out for errors during the install process. Enter the Nagios server IP address towards the end of the installation process (when asked). Then test nrpe to make sure it works on the client site:
(Modify this if your plugins directory is in a different location)
You should see:
Note: You may have to add your local host to the "only_from" line in the "/etc/xinetd.d/nrpe":
Things to watch for - iptables, port 5666.
Hope this helps.
Code: Select all
which xinetdCode: Select all
cd /usr/local/nagios/libexecCode: Select all
./check_nrpe -H localhostCode: Select all
NRPE v2.12Code: Select all
only_from = 127.0.0.1 192.168.X.XHope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe error
the arror i get after doing is:
could not complete ssl handshake
Here is what my nrpe cfg looks like:
Code: Select all
./check_nrpe -H localhostcould not complete ssl handshake
Code: Select all
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = k172.22.3.17
}
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: nrpe error
You have:
You should probably have:
Are you using xinetd? Can you run the following command?
Either way, you should have also "127.0.0.1" in the "only_from" line, so that you can run NRPE against the localhost. Also, dont forget to restart the daemon if you make any changes:
Code: Select all
only_from = k172.22.3.17Code: Select all
only_from = 172.22.3.17Code: Select all
cat /etc/xinetd.d/nrpeCode: Select all
service xinetd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe error
Scott what did you mean by this:
Things to watch for - iptables, port 5666.
Hope this helps.
User avatar
lmiltchev
Posts: 906
Joined: Mon May 23, 2011 1:15 pm
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: nrpe error
Now I am getting a "connection refused " error
I set this up with the wizard using SSL encryption , should I be adding a port or something?
this is what i ran on the client machine:
I set this up with the wizard using SSL encryption , should I be adding a port or something?
this is what i ran on the client machine:
Code: Select all
Now I am getting a "connection refused " error
I set this up with the wizard using SSL encryption , should I be adding a port or something?
[code]login as: root
[email protected]'s password:
Last login: Thu Jun 7 12:07:08 2012 from 172.22.240.3
[root@lkennagiosxi01 ~]# cd /usr/local/nagios/libexec
[root@lkennagiosxi01 libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@lkennagiosxi01 libexec]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
You have new mail in /var/spool/mail/root
[root@lkennagiosxi01 libexec]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@lkennagiosxi01 libexec]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@lkennagiosxi01 libexec]# cd /usr/local/nagios/libexec
You have new mail in /var/spool/mail/root
[root@lkennagiosxi01 libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@lkennagiosxi01 libexec]#
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: nrpe error
Can you try telnetting to port 5666 from your nagios server?
You can try temporarily disabling the firewall while you are troubleshooting by running in terminal:
Code: Select all
# telnet <your_client_IP> 5666Code: Select all
# service iptables stopBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe error
I ran this on the client server:
From the monitoring server:
No good
Code: Select all
login as: root
[email protected]'s password:
Last login: Thu Jun 7 13:39:47 2012 from 172.22.240.8
[root@lkennagiosxi01 ~]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
[root@lkennagiosxi01 ~]#
Code: Select all
login as: root
[email protected]'s password:
Last login: Thu Jun 7 12:26:57 2012 from 172.22.240.3
[root@lkennagiosxi01 ~]# telnet 172.22.2.123 5666
Trying 172.22.2.123...
Connected to 172.22.2.123 (172.22.2.123).
Escape character is '^]'.
Connection closed by foreign host.
[root@lkennagiosxi01 ~]# telnet 172.22.2.123 5666
Trying 172.22.2.123...
Connected to 172.22.2.123 (172.22.2.123).
Escape character is '^]'.
Connection closed by foreign host.
You have new mail in /var/spool/mail/root
[root@lkennagiosxi01 ~]#
No good
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion