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 https://github.com/firehol/netdata.git --depth=1

cd netdata

./netdata-installer.sh

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 127.0.0.1 ::1
</Location>

/etc/init.d/httpd restart

/etc/init.d/netdata restart

Update

cd netdata
./netdata-updater.sh

Useful files

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

Resources