【问题标题】:I can't see my data in graph with shinken and graphite我无法在带有 Shinken 和石墨的图表中看到我的数据
【发布时间】:2023-11-25 11:20:01
【问题描述】:

Apache 2.4.7,
Ubuntu 服务器 14.04.

使用 WebUI 进行 Shinken
名称服务器: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

Graphite 上什么都没有出现...

  1. 当我去新研时,图形窗口显示no data。当然是因为第一个问题。

  2. 当我点击 Show more button 时,他在 Graphite 页面上发送给我,但 uri 后面没有其他内容。 (如http://dev03)正常吗?

我也在尝试这个:

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

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

【问题讨论】:

    标签: linux ubuntu graphite


    【解决方案1】:

    好的,

    我允许自己回答我自己的问题,因为我注意到关于 Graphite / Shinken 的答案/帮助并不多。就我个人而言,我很难找到解决方案。

    所以,当我在我的 Ubuntu 服务器上启动这个命令时:

    service carbon-cache start
    

    似乎 carbon-cache 没有启动......或者没有按预期启动。我找到了另一种启动此服务并确保它有效的方法:

    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上遇到过)

    【讨论】:

      最近更新 更多