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/
You would get a page something like below, real-time visualization of a system including free swap, disk read, disk write, CPU, IPv4 inbound, IPv4 outbound, and Available RAM.
'Academy I > Tech Academy' 카테고리의 다른 글
실시간으로 음성을 문자로 나타내는 구글 보이스 입력 서비스 (0) | 2017.02.10 |
---|---|
Starting MySQL as a Windows Service (0) | 2016.12.29 |
FireMonkey 관련 자료 (0) | 2016.09.29 |
랜섬웨어 기술들 (0) | 2016.06.16 |
개발자의 생명은 커뮤니케이션 능력 (0) | 2016.04.25 |
모바일 앱을 만들 수 있는 10가지 툴 (0) | 2016.04.22 |
오래된 윈도 앱, 윈도10 변환 가능 (0) | 2016.03.31 |
OWASP 보안 지식 프레임워크 (0) | 2016.03.30 |