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?
Jasmin shahrzadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.