[英]Couldn't start riemann health
I'm new to Riemann and also new to ruby and Clojure as well. 我是Riemann的新手,也是ruby和Clojure的新手。
When I implementation of the riemann command: 当我执行riemann命令时:
riemann-health 黎曼 - 健康
The error message is 错误消息是
Riemann::Client::TcpSocket::Error Could not connect to 127.0.0.1:5555:Errno::ECONNREFUSED: Connection refused - connect(2)
/var/lib/gems/1.9.1/gems/riemann-client-0.2.5/lib/riemann/client/tcp_socket.rb:233:in `connect_nonblock'
My develop environment is: 我的开发环境是:
Ubuntu 14.04.2 LTS Ubuntu 14.04.2 LTS
riemann version is 0.2.10. riemann版本为0.2.10。
java version "1.8.0_45" Java版本“ 1.8.0_45”
ruby 1.9.3p484 红宝石1.9.3p484
I'm assuming that you are running Riemann and riemann-dash on the same computer and not using docker for either of these: 我假设您在同一台计算机上运行Riemann和riemann-dash,并且不对其中任何一个使用docker:
Riemann listens to 黎曼听
so there are several combinations of possible problems: 因此,可能出现问题的几种组合:
once you have convinced yourself that the riemann process is still running run 一旦您使自己确信riemann进程仍在运行
sudo netstat -nlp | grep 5555
and be sure you can see that riemann is infact listening to port 5555 both tcp and udp. 并确保您可以看到riemann实际上是在侦听tcp和udp的端口5555。 Then install netcat and make sure you can connect to those ports with 然后安装netcat并确保您可以使用以下命令连接到这些端口
nc -v localhost:5555
and 和
nc -uvv localhost:5555
asdfasfd
(yes you need to type some gobbeldy to get the second example to actually send a packet. (是的,您需要输入一些妖怪来获得第二个示例来实际发送数据包。
If you still havent got a connection install etherial or tcpdump and start sniffing. 如果您仍然没有连接,请安装etherial或tcpdump并开始嗅探。
If you are running docker, and using riemann in UDP then there are a whole other set of things to check. 如果您正在运行docker并在UDP中使用riemann,那么还有其他一系列事情需要检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.