How to Install Netdata on Centos / RHEL 6

Install the packages needed for compilation

yum install autoconf automake curl gcc git libmnl-devel libuuid-devel lm_sensors make MySQL-python nc pkgconfig python python-psycopg2 PyYAML zlib-devel

Install Netdata

cd /root

git clone --depth=1

cd netdata


Enable Fail2ban plugin

vi /etc/fail2ban/fail2ban.conf

logtarget = /var/log/fail2ban.log

Enable Apache plugin

vi /etc/httpd/conf/httpd.conf

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from ::1

/etc/init.d/httpd restart

/etc/init.d/netdata restart


cd netdata

Useful files

  • /etc/netdata/netdata.conf
  • /var/log/netdata/error.log