• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the relation between nrpe and nagios?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when this exception occurs "Connection refused by host".
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Santosh Kumar Balasubramani
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic