aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
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: 5779
    
    7

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: 15641
    
  15

"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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 15641
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the relation between nrpe and nagios?