Where to start!?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

This is the client machine :

[email protected]:~# /usr/local/nagios/libexec/check_nrpe -H localhost -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

root@ip-0-0-0-0:~# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libgudev-1.0-0 gir1.2-gudev-1.0 python-twisted-names
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Nagios:

root@nagios:~# /usr/local/nagios/libexec/check_nrpe -H localhost -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

root@nagios:~# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libgudev-1.0-0 gir1.2-gudev-1.0 python-twisted-names
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post by rkennedy »

OK - on the client machine, what is the output for this file? cat /etc/xinetd.d/nrpe
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

root@ip-xxx-xx-xx-xxx:~# cat /etc/xinetd.d/nrpe
# 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 = 127.0.0.1 0.0.0.0 => nagios IP address
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Where to start!?

Post by Box293 »

From your output, there should be one more line that has }
Is this just a copy and paste error? For example mine is:

# 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 = 127.0.0.1 10.25.0.0/16
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

Yes -- sorry about that

root@ip-xx-xx-xx-xxx:~# cat /etc/xinetd.d/nrpe
# 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 = 127.0.0.1 xx.xx.xxx.xx
}
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post by rkennedy »

On the client machine, what is the result of this?

Code: Select all

netstat -anp|grep '5666'
Also just saw this - above I had mentioned installing openssl-dev (it might be openssl-devel), and it looks like you tried to install libssl-dev. Can you try installing openssl-dev and post the output?
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

Here is the output

root@ip-xxx-xx-xx-xxx:~# netstat -anp|grep '5666'
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 5155/nrpe

Install it on both the client and the nagios machine?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post by rkennedy »

Yes, you will need SSL on both machines.
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

I thought that libssl-dev was the ubuntu equivalent?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post by rkennedy »

I don't believe so. What is the result if you try to apt-get install openssl-dev or openssl-devel?
Former Nagios Employee
Locked