• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 65
  • Last Modified:

nagiios core version 4

i have nagios core version 4.3  installeret på server ubuntu 16.04 . and nrpe version 3 og plugin 2.2.1 from client. on ununtu 16 and 14.
alle works . except for one ubuntu 16.04 i have error connection reset by peer )from nagios server)
from client when i say
./check_nrpe -H ipadress        then connection reset by peer
./check_nrpe -H 127.0.0.1       working  NRPE 3.2.1
./check_nrpe -H localhost    connect to address ::1 port 5666: Connection refused
NRPE v3.2.1

i have disabled = no on /etc/xie../nrpe
and  only_from       = 127.0.0.1 client-ip  server-ip

from /usr/local/.../nrpe.cfg
allowed_host = 127.0.0.1,::1,client-ip,server-ip

like all other 16.04 and 14.04.
what is wrong?
0
Jasmin shahrzad
Asked:
Jasmin shahrzad
1 Solution
 
nociSoftware EngineerCommented:
you also need ::1 in only_from   (you onlly allow 127.0.0.1, ::1 is ipv6 equivalent of that.
for the first check also the IP of the system you are checking from needs to be in the only_from & allowed_host.
(ie. if different from client-ip, server-ip),  also client-ip and server-ip need to be resolavable (/etc/resolv.conf or /etc/hsots).
(also when this server needs to bes tarted and the network is not up yet.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now