简体   繁体   English

无法开始黎曼健康

[英]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 黎曼听

  • port 5555 udp for events 端口5555 udp的事件
  • port 5555 tcp for events 端口5555 tcp的事件
  • port 5556 tcp for queries 5556 TCP端口进行查询

so there are several combinations of possible problems: 因此,可能出现问题的几种组合:

  • riemann is not running at all riemann根本没有运行
  • riemann started up, and then fell over and died. 瑞曼开始创业,然后摔倒而死。
    this happens when it has no config file for instance. 例如,当它没有配置文件时,就会发生这种情况。
  • riemann is not listening on 5555 tcp riemann没有在5555 tcp上监听
  • riemann is not listening on 5555 udp riemann没有在5555 udp上收听
  • riemann is listening to the incorrect interface (aka "bind address") If riemann where configured to listen to 1.2.3.4:5555 then it would not respond to connections from localhost (127.0.0.1) riemann正在侦听错误的接口(也称为“绑定地址”)。如果riemann配置为侦听1.2.3.4:5555,则它将不会响应来自本地主机的连接(127.0.0.1)
  • the connection is being blocked by some firewall (no, don't turn your firewall off) 连接被某些防火墙阻止(不,请不要关闭防火墙)
  • riemann is listening on udp and you are sending tcp (or the other way around) riemann正在udp上监听,而您正在发送tcp(或者相反)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM