Solved: nrpe[]: Host 172.23.99.999 is not allowed to talk to us!

Today we will see one of the most common Nagios NRPE error message and its resolution.

Lets see the error message and its resolution.

I. Error Message

[root@ngelinux001 ~]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
● nrpe.service - Nagios Remote Program Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2022-09-13 10:56:47 IST; 13min ago
     Docs: http://www.nagios.org/documentation
 Main PID: 435305 (nrpe)
   CGroup: /system.slice/nrpe.service
           └─435305 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f

Sep 13 10:58:11 ngelinux001 nrpe[436090]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 10:58:15 ngelinux001 nrpe[436125]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 10:58:17 ngelinux001 nrpe[436141]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:00:14 ngelinux001 nrpe[437381]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:03:14 ngelinux001 nrpe[439032]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:04:03 ngelinux001 nrpe[439565]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:04:11 ngelinux001 nrpe[439616]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:04:17 ngelinux001 nrpe[439672]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:04:17 ngelinux001 nrpe[439674]: Host 172.23.99.999 is not allowed to talk to us!
Sep 13 11:05:15 ngelinux001 nrpe[440340]: Host 172.23.99.999 is not allowed to talk to us!

 

II. Solution
The error means this client is not able to communicate with Nagios server.

It means there is some issue with its nrpe config file.

In my case, this file does not exists.

[root@ngelinux001 ~]# cat /etc/nrpe.d/nrpe.cfg
cat: /etc/nrpe.d/nrpe.cfg: No such file or directory

[root@ngelinux001 ~]# cat /etc/nagios/nrpe.cfg
cat:  /etc/nagios/nrpe.cfg: No such file or directory

I re-created from another system and then it worked fine.

The other point we need to note is the IP of nagios server should be there in allowed_hosts option.

[root@ngelinux001 ~]# cat /etc/nagios/nrpe.cfg
#site=NOIDA
#cluster=NGELCLUS01
log_facility=daemon
debug=0
pid_file=/var/run/nrpe/nrpe.pid
server_port=5666
nrpe_user=nrpe
nrpe_group=nrpe
allowed_hosts=127.0.0.1,172.23.99.999

If the file exists, with read permissions and this option is mentioned, the error will go away.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments