Netdata Nedir?
Netdata, C dili ile geliştirilmiş, linux bazlı sunucuları grafiksel olarak izlemeye yarayan bir programcıktır. Ortalama 70 MB ram ve %1-2 Cpu kullanmaktadır. Her 5 saniyede bir canlı görünüm sağlamaktadır. Kurulum yönergeleri aşağıdaki gibidir.
Prerequisites:
Install the zlib development package and other packages.
### Ubuntu 16.04 / 14.04 ### $ sudo apt-get install zlib1g-dev gcc make git autoconf autogen automake pkg-config ### CentOS 7 / RHEL 7 / CentOS 6 / RHEL 6 ### # yum install zlib-devel gcc make git autoconf autogen automake pkgconfig psmisc
Installing Netdata:
Run the following command to clone the netdata git.
# git clone https://github.com/firehol/netdata.git --depth=1 # cd netdata
Execute the automatic installation to begin the installation of netdata.
### Ubuntu 16.04 / 14.04 ### $ sudo ./netdata-installer.sh ### CenntOS 7 / RHEL 7 / CentOS 6 / RHEL 6 ### # ./netdata-installer.sh
You would get an interactive prompt for installing netdata, press Enter to begin the installation.
Welcome to netdata! Nice to see you are giving it a try! You are about to build and install netdata to your system. It will be installed at these locations: - the daemon at /usr/sbin/netdata - config files at /etc/netdata - web files at /usr/share/netdata - plugins at /usr/libexec/netdata - cache files at /var/cache/netdata - log files at /var/log/netdata - pid file at /var/run This installer allows you to change the installation path. Press Control-C and run the same command with --help for help. Press ENTER to build and install netdata to your system >
The above prompt would let you know where all your files will be placed. If you don’t want to install it in the default directories, you can run the installer like this: ./netdata-installer.sh –install /opt. This will install netdata in /opt/netdata.
At the end of the installation, you would get an output like below.
------------------------------------------------------------------------------- ok. NetData is installed and is running. Hit http://localhost:19999/ from your browser. To stop netdata, just kill it, with: killall netdata To start it, just run it: /usr/sbin/netdata Enjoy! INFORMATION: I see you have kernel memory de-duper (called Kernel Same-page Merging, or KSM) available, but it is not currently enabled. To enable it run: echo 1 >/sys/kernel/mm/ksm/run echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs If you enable it, you will save 20-60% of netdata memory. Uninstall script generated: ./netdata-uninstaller.sh
Installer will start the netdata on completion of installation, verify that netdata is running using the following.
# netstat -antup | grep 19999 tcp6 0 0 :::19999 :::* LISTEN 5017/netdata
Accessing Netdata:
Configure the firewall to allow access to netdata web interface for the external machines, only valid if the firewalld is installed on your machine.
### CentOS 7 / RHEL 7 / CentOS 6 / RHEL 6 ### # firewall-cmd --permanent --add-port=19999/tcp # firewall-cmd --reload
Open up your web browser and navigate it to http://your-ip-address or http://localhost:19999/. In my case, it is like http://192.168.12.15:19999/
kaynak:http://linuxdunyasi.altervista.org/netdata_monitoring/