1 (edited by cvieira 2013-11-04 23:30:28)

Topic: NRPE (installed after iRedMail) not working

Hello,

After having successfully installed iRedMail, I've installed NRPE (NagiOS client) through YUM to monitor our server, as for other servers. However, we're not getting it to work, as we're getting the following error: "Connection refused by host".

Well, we have configured /ets/services correctlly:

nrpe     5666/tcp           # NRPE

And /etc/sysconfig/iptables:

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p tcp -m multiport --dport 80,443,25,465,110,995,143,993,587,465,22 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp --icmp-type echo-request -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
COMMIT

Does anyone have installed NRPE before (on a iRedMail server) that might know what can I also check?


==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.4
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: NRPE (installed after iRedMail) not working

Does it work if you remove "-m tcp" in the iptables rule for port 5666?

3 (edited by cvieira 2013-11-05 17:17:17)

Re: NRPE (installed after iRedMail) not working

No! When I try to run a check command from NagiOS I'm still getting "Connection refused by host".
Telneting this port don't work also.
(NOTE: I ran a fresh CentOS installation in the same lan without iRedMail and it is successfully communicating with NagiOS).

4

Re: NRPE (installed after iRedMail) not working

Does it work if you disable iptables temporary? For example:

# /etc/init.d/iptables stop

If it works, then there must be something with your iptables rules. if it still not work, then your application is not listening on port 5666 at all.

5

Re: NRPE (installed after iRedMail) not working

Make sure you've also set up the IP address for your server in xinetd.  I forget the exact file but it's listed in the install directions for NRPE.

cvieira wrote:

Hello,

After having successfully installed iRedMail, I've installed NRPE (NagiOS client) through YUM to monitor our server, as for other servers. However, we're not getting it to work, as we're getting the following error: "Connection refused by host".

Well, we have configured /ets/services correctlly:

nrpe     5666/tcp           # NRPE

And /etc/sysconfig/iptables:

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p tcp -m multiport --dport 80,443,25,465,110,995,143,993,587,465,22 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp --icmp-type echo-request -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
COMMIT

Does anyone have installed NRPE before (on a iRedMail server) that might know what can I also check?


==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.4
- Related log if you're reporting an issue:
====