IntelliJ Java IDE
The moose likes Linux / UNIX and the fly likes what is the relation between nrpe and nagios? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "what is the relation between nrpe and nagios?" Watch "what is the relation between nrpe and nagios?" New topic
Author

what is the relation between nrpe and nagios?

Santosh Kumar Balasubramani
Greenhorn

Joined: Jun 21, 2011
Posts: 12
when this exception occurs "Connection refused by host".
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

Connection refused by host usually means that the port you are attempting to access is not open.

If you would provide some more details about what you are doing and when/where the error shows up we could be more helpful.
TellTheDetails


JBoss In Action
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

"Connection refused by host" means literally what it says. The client (nrpe), attempted to connect to the host (nagios listener) and the host rejected the attempt.

This can happen for 2 primary reasons:

1. There's nothing listening on the host port - the nrpe server isn't running either as a daemon or under the (x)inetd super-server.

2. There's a firewall blocking access to the host port.

Linux firewalls would normally be blocking the nrpe port by default, so if the nrpe server is functioning, it's probably the firewall.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Santosh Kumar Balasubramani
Greenhorn

Joined: Jun 21, 2011
Posts: 12
Hi Tim,
Linux firewalls would normally be blocking the nrpe port by default. How would i know that Linux firewall is blocking the nrpe port..?
Is there any way that i will overcome from this issue.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

I normally add this iptables predicate to a rule right before the final REJECT/DROP rule in my firewall:

"-j LOG"

That will show all the blocked traffic in the system log, including the nrpe traffic, if it's being blocked.

Most Linux systems will setup their rules to block anything that wasn't specifically approved.
 
 
subject: what is the relation between nrpe and nagios?
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com