nagios Connection refused by host
2016-10-26 17:00
477 查看
服务端(192.168.2.110)无法访问客户端的NRPE: [root@node1 ~]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1NRPE v2.12[root@node1 ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.2.120Connection refused by host 客户端(192.168.2.120):[root@node120 etc]# lsof -i :5666COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnrpe 18703 nagios 4u IPv4 85766 0t0 TCP localhost:5666 (LISTEN)#只在本地有效,所有外部的IP无法访问[root@node120 etc]# vim nrpe.conf +44将以下内容注释掉:#server_address=127.0.0.1[root@node120 etc]# pkill nrpe[root@node120 etc]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d[root@node120 etc]# lsof -i :5666COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnrpe 18766 nagios 4u IPv4 89670 0t0 TCP *:5666 (LISTEN)这个就可以正常访问了 服务端访问:[root@node1 etc]# /usr/local/nagios/libexec/check_nrpe -H 192.168.2.120 -c check_iostatIOSTAT OK - user 0.28 nice 0.00 sys 0.30 iowait 0.31 idle 0.00 | iowait=0.31%;; idle=0.00%;; user=0.28%;; nice=0.00%;; sys=0.30%;;
相关文章推荐
- 【排障】nagios出现问题connection refused by host
- nrpe 提示Connection refused by host
- Unencrypted connection refused. Goodbye. Connection closed by foreign host.
- 解决Windows用vnc连接Ubuntu时出现The connection was refused by the host computer问题
- VNC Viewer:The connection was refused by host computer
- android 出现org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1 refused的解决方案
- ssh连接其他主机时候ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host
- 调用远程主机上的RMI服务时抛出java.rmi.ConnectException: Connection refused to host: 127.0.0.1异常原因及解决方案
- 调用远程主机上的RMI服务时抛出java.rmi.ConnectException: Connection refused to host: 127.0.0.1异常原因及解决方案
- Error:svn: E175002: connection refused by the server svn
- ssh:connect to host localhost port 22: Connection refused解决方法
- spring RMI demo运行报错-nested exception is java.rmi.ConnectException: Connection refused to host: local
- Xlib: connection to ":0.0" refused by server
- 解决connect to host localhost port 22: Connection refused问题
- Connection closed by foreign host.
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Err:Xlib:connection to ":0.0" refused by server Xlib
- ssh_exchange_identification: Connection closed by remote host
- Xlib: connection to ":0.0" refused by server解决方法