<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>You may need to add a Server line to the network plugin:<br># server<br><Plugin "network"><br> Server "192.168.122.40"<br> Listen "192.168.122.40"<br></Plugin><br><br>Other things to check since I am not familiar with your setup:<br><br>If you run netstat, is the carbon port listening on 0.0.0.0:2003? (from a remote machine, `telnet x.x.x.x 2003`)<br>Do you have iptables running?<br>Check either /var/log/messages or /var/log/audit/audit.log for avc selinux denials.<br><br><br><br><div>> From: sdl.web@gmail.com<br>> To: collectd@verplant.org<br>> Date: Sun, 19 Oct 2014 12:26:58 +0800<br>> Subject: [collectd] collectd[3112]: write_graphite plugin: Connecting to localhost:2003 via tcp failed<br>> <br>> Hi there,<br>> <br>> I am running collectd on centos 7. collectd and collectd-rrdtool are<br>> installed from the EPEL repo. I keep getting this error:<br>> <br>> Oct 19 12:02:12 boss collectd[3112]: write_graphite plugin: Connecting to localhost:2003 via tcp failed. The last error was: Permission denied<br>> <br>> Here is the conf I added to /etc/collectd.d/server.conf and no other<br>> changes are made:<br>> <br>> LoadPlugin "network"<br>> LoadPlugin "write_graphite"<br>> <br>> # server<br>> <Plugin "network"><br>> Listen "192.168.122.40"<br>> </Plugin><br>> <br>> <Plugin write_graphite><br>> <Node "example"><br>> Host "localhost"<br>> Port "2003"<br>> Protocol "tcp"<br>> LogSendErrors true<br>> Prefix "collectd"<br>> Postfix "collectd"<br>> StoreRates true<br>> AlwaysAppendDS false<br>> EscapeCharacter "_"<br>> </Node><br>> </Plugin><br>> <br>> Both collectd and carbon-cache are run on the same machine (KVM).<br>> <br>> I can verify carbon-cache is listening on port 2003/tcp and it is<br>> working. I tested its working by using the example-client.py from carbon<br>> git repo from another machine as evidenced by the carbon's listener.log:<br>> <br>> 19/10/2014 10:59:59 :: MetricLineReceiver connection with 127.0.0.1:57222 established<br>> 19/10/2014 11:00:00 :: MetricLineReceiver connection with 127.0.0.1:57222 closed cleanly<br>> <br>> Could someone help me resolve this issue? Thanks.<br>> <br>> Leo<br>> <br>> _______________________________________________<br>> collectd mailing list<br>> collectd@verplant.org<br>> http://mailman.verplant.org/listinfo/collectd<br></div> </div></body>
</html>