所以我已经被这个问题困扰了一段时间了。我想使用collectd
。graphite
我正在使用centos 7
。我已经做了必要的更改,collectd.conf
如下所示:
[root@relay-1 ~]# grep -v "#" /etc/collectd.conf
LoadPlugin syslog
LoadPlugin logfile
<Plugin logfile>
LogLevel info
File STDOUT
Timestamp true
PrintSeverity false
</Plugin>
LoadPlugin cpu
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin write_graphite
<Plugin network>
Server "ff18::efc0:4a42" "25826"
<Server "239.192.74.66" "25826">
</Server>
</Plugin>
<Plugin write_graphite>
<Node "example">
Host "localhost"
Port "2003"
Protocol "tcp"
LogSendErrors true
Prefix "collectd"
Postfix "collectd"
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
</Node>
</Plugin
[root@relay-1 ~]#
无论我做什么,我都看不到一个听众愿意倾听127.0.0.1:2003
[root@relay-1 ~]# netstat -tnlup | grep collectd
udp 0 0 0.0.0.0:44872 0.0.0.0:* 20838/collectd
udp 0 0 0.0.0.0:59583 0.0.0.0:* 20822/collectd
udp6 0 0 :::36059 :::* 20822/collectd
udp6 0 0 :::51289 :::* 20838/collectd
[root@relay-1 ~]#
[root@relay-1 ~]#
[root@relay-1 ~]# netstat -tnlup | grep 2003
tcp 0 0 0.0.0.0:2003 0.0.0.0:* LISTEN 15868/python2
[root@relay-1 ~]#
Carbon-relay
正在收听2003
,
编辑:我希望 collectd 绑定到 127.0.0.1:2003(以便它显示在 netstat 中)。我该怎么做?
PS Carbon 中继应继续监听0.0.0.0:2003