5

I have been trying to monitor a remote server using Nagios-Nrpe. The remote host is the Amazon Ec2 instance where I have installed npre daemon on xinetd.

  • I have added my nagios server IP to "only-from" property in /etc/xinet.d/nrpe file.
  • I have added the entry in /etc/services.
  • I have made changes in iptables also.
  • I have added an entry for TCP port 5666 in my security group too.

These commands work properly:

$ netstat -at | grep nrpe 
$usr/local/nagios/libexec/check_nrpe -H localhost

I have setup the nagios server and nrpe_check plugin on my local machine. But whenever I am doing:

/usr/local/nagios/libexec/check_nrpe -H <"amazon-ec2-IP-address">

I get the following error:

connect to address <"amazon-ec2-IP-address"> port 5666: Connection refused ......
connect to host <"amazon-ec2-IP-address"> port 5666: Connection refused

I have tried making the nrpe client on another linux on my LAN and the command worked, but not for Amazon Ec2.

If anyone has the solution for this issue, please do share ASAP.

4

1 回答 1

1

确保你有,

在链接到 EC2 实例的安全组中打开端口 5666。

于 2014-02-10T10:35:37.890 回答