collectd – Cannot send out matrics

collectd is a statistics gathering tools which helps system admin to analysis the system conditions. It includes both server and client implementations. The collectd client send metrics to the collectd server.


I installed the collectd on a CentOS 7 machine and try to send the metrics to a Graphite instance. But no matter how i changed the setup, the Graphite couldn’t receive any data. Finally, i realized that it is blocked by the SELinux policy.

1. List the SELinux policy which is about collectd.

[ykyuen@centos7 ~]$ getsebool -a | grep collectd
collectd_tcp_network_connect --> off
[ykyuen@centos7 ~]$ 


2. To allow collectd under SELinux, set it to on.

[ykyuen@centos7 ~]$ setsebool -P collectd_tcp_network_connect 1


Done =)

Reference: Fedora Manpages: collectd_selinux(8)


2 thoughts on “collectd – Cannot send out matrics”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.