我不能用shinken和石墨在图表中看到我的数据

时间:2015-03-27 13:29:20

标签: linux ubuntu graphite

Apache 2.4.7,
Ubuntu Server 14.04。

Shinken与WebUI
名称服务器:dev03

我在Ubuntu Server 14上,我安装了Shinken进行监控。 Shinken工作得很好,并在我的网络上发现主机。 然后我想在Shinken上“链接”石墨以获得一些图形。所有的安装工作正常,我可以看到我的服务器上的Graphite UI。我按照本教程安装了Graphite:https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server

但我有一些问题:

  1. 当我制作类似的内容时,我的Graphite不会显示数据:

    echo“test.count 4 date +%s”| nc -q0 127.0.0.1 2003

  2. Graphite上没有任何内容......

    1. 当我去Shinken时,图表的窗口显示no data。当然是由于第一个问题。

    2. 当我点击Show more button时,他将我发送到Graphite的页面上,但uri背后没有任何其他内容。 (比如http://dev03)这是正常的吗?

    3. 我也试过这个:

      https://askubuntu.com/questions/509629/sending-data-to-port-does-not-seem-to-be-working-on-ubuntu-linux

      但似乎我的端口2003没有正在侦听/打开

       netstat -tuplen
      Connexions Internet actives (seulement serveurs)
      Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       User       Inode       PID/Program name
      tcp        0      0 0.0.0.0:7767            0.0.0.0:*               LISTEN      1001       544010      1816/python
      tcp        0      0 0.0.0.0:7768            0.0.0.0:*               LISTEN      1001       542859      1194/python
      tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      107        9068        931/postgres
      tcp        0      0 0.0.0.0:7769            0.0.0.0:*               LISTEN      1001       543251      1432/python
      tcp        0      0 0.0.0.0:7771            0.0.0.0:*               LISTEN      1001       543079      1317/python
      tcp        0      0 0.0.0.0:7772            0.0.0.0:*               LISTEN      1001       543634      1579/python
      tcp        0      0 0.0.0.0:7773            0.0.0.0:*               LISTEN      1001       543810      1694/python
      tcp        0      0 127.0.0.1:44255         0.0.0.0:*               LISTEN      1001       543623      1582/python
      tcp        0      0 127.0.0.1:43007         0.0.0.0:*               LISTEN      1001       542845      1201/python
      tcp        0      0 127.0.0.1:38856         0.0.0.0:*               LISTEN      1001       543911      1793/python
      tcp        0      0 127.0.0.1:57546         0.0.0.0:*               LISTEN      1001       543808      1695/python
      tcp        0      0 127.0.0.1:46282         0.0.0.0:*               LISTEN      1001       543238      1439/python
      tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      102        9099        855/mysqld
      tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          8098        548/rpcbind
      tcp        0      0 127.0.0.1:34293         0.0.0.0:*               LISTEN      1001       543071      1326/python
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          8930        792/sshd
      tcp6       0      0 ::1:5432                :::*                    LISTEN      107        9067        931/postgres
      tcp6       0      0 ::1:7770                :::*                    LISTEN      1001       543920      1792/python
      tcp6       0      0 :::111                  :::*                    LISTEN      0          8101        548/rpcbind
      tcp6       0      0 :::80                   :::*                    LISTEN      0          541053      708/apache2
      tcp6       0      0 :::22                   :::*                    LISTEN      0          8932        792/sshd
      udp        0      0 0.0.0.0:703             0.0.0.0:*                           0          8097        548/rpcbind
      udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          8092        548/rpcbind
      udp6       0      0 :::703                  :::*                                0          8100        548/rpcbind
      udp6       0      0 :::111                  :::*                                0          8099        548/rpcbind
      

      如果有人可以帮助我...因为我看到很多论坛和其他网站,但我找不到解决方案......

1 个答案:

答案 0 :(得分:0)

确定,

我允许自己回答我自己的问题,因为我注意到Graphite / Shinken没有很多答案/帮助。我个人努力寻找解决方案。

因此,当我在我的Ubuntu服务器上启动此命令时:

service carbon-cache start

似乎碳缓存没有按预期开始......或者没有开始。我找到了启动此服务的另一种方法,并确保它有效:

carbon-cache --config /etc/carbon/carbon.conf start # For normal mode
carbon-cache --config /etc/carbon/carbon.conf --debug start # For debug mode

这是我正确启动此守护程序的唯一方法。实际上,我的端口2003正在尝试收听。之后,Shinken和Graphite工作正常。

(看来在Debian上,没有这个问题。我只在Ubuntu Server上遇到过这个问题)