This is a cache of https://support.nagios.com/kb/article/nrpe-connection-refused-or-timed-out-626.html. It is a snapshot of the page at 2025-05-14T00:12:29.549+0000.
NRPE - Connection Refused Or Timed Out
Home » Categories » Products » NRPE » Troubleshooting » Common Problems

NRPE - Connection Refused Or Timed Out

Problem Description

This KB article addresses the following NRPE error:

Connection Refused Or Timed Out

 

Assumed Knowledge

The following KB article contains an explanation of how NRPE works and may need to be referenced to completely understand the problem and solution that is provided here:

NRPE - Agent and Plugin Explained

 

Troubleshooting The Error

This error is most often experienced when using the remote host as an NRPE proxy server to a network segment.

It can also be caused by using an incorrect IP address or DNS record in the check_nrpe command (rare in Nagios xi configurations). Double check the IP address, is it correct? If it is a DNS record, does it resolve to the correct IP address?

If you do use the remote host as an NRPE proxy, you may need to increase the maximum number of concurrent connections through xinetd. You need to add per_source = UNLIMITED to /etc/xinetd.d/nrpe.

Log onto your remote host at root and execute:

vi /etc/xinetd.d/nrpe

When using the vi editor, to make changes press i on the keyboard first to enter insert mode. Press Esc to exit insert mode.

 

Add the following line to the file inside the closing "}":

per_source=UNLIMITED

 

When you have finished, save the changes in vi by typing:

:wq

and press Enter.

 

Restart xinetd with the following command:

service xinetd restart

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
NRPE - Linux Cached Memory Not Added to Free Memory
Viewed 10045 times since Wed, Jan 27, 2016
NRPE - v3/v4 Compatibility With Previous Versions
Viewed 46593 times since Fri, Jun 24, 2016
NRPE - Error While Loading Shared Libraries: libssl.so
Viewed 12204 times since Mon, Jul 17, 2017
NRPE - Warning: This Plugin Must Be Either Run As Root Or Setuid
Viewed 11634 times since Mon, Jul 17, 2017
NRPE - Packet Size Explained
Viewed 30863 times since Thu, Jun 30, 2016
NRPE - UNKNOWN: No Handler For That Command
Viewed 15019 times since Mon, Jul 17, 2017
NRPE - CHECK_NRPE: Error Receiving Data From Daemon
Viewed 11328 times since Mon, Jul 17, 2017
NRPE - General Troubleshooting Tips
Viewed 18439 times since Mon, Jul 17, 2017
NRPE - Remote does not support Version 3 Packets
Viewed 25126 times since Mon, Nov 27, 2017
NRPE - NRPE: Unable To Read Output
Viewed 90620 times since Mon, Jul 17, 2017