Author Topic: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )  (Read 11058 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
[Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« on: September 05, 2018, 12:17:31 PM »
Hi,

One more Guide :


First we install all required packages :
# yum install zlib1g-dev uuid-dev libmnl-dev pkg-config curl gcc make autoconf autoconf-archive autogen automake python python-yaml python-mysqldb nodejs lm-sensors python-psycopg2 netcat git -y


Second we install the latest version of the Netdata from Git repository.

#git clone https://github.com/firehol/netdata.git --depth=1 ~/netdata *

Next, change the directory to the cloned directory using the following command:

* ~/netdata is installation directory assume you want to be installed under root

#cd ~/netdata

Next, install the Netdata by running the netdata-installer.sh script as shown below:

# ./netdata-installer.sh

You should see the following output:

Downloading default configuration from netdata...
[/root/netdata]# curl -s -o /etc/netdata/netdata.conf.new http://localhost:19999/netdata.conf
 OK

[/root/netdata]# mv /etc/netdata/netdata.conf.new /etc/netdata/netdata.conf
 OK

 OK  New configuration saved for you to edit at /etc/netdata/netdata.conf

[/root/netdata]# chown netdata /etc/netdata/netdata.conf
 OK

[/root/netdata]# chmod 0664 /etc/netdata/netdata.conf
 OK

 --- Check KSM (kernel memory deduper) ---

Memory de-duplication instructions

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 40-60% of netdata memory.

 --- Check version.txt ---
 --- Check apps.plugin ---
 --- Generate netdata-uninstaller.sh ---
 --- Basic netdata instructions ---

netdata by default listens on all IPs on port 19999,
so you can access it with:

  http://this.machine.ip:19999/

To stop netdata run:

  systemctl stop netdata

To start netdata run:

  systemctl start netdata


Uninstall script generated: ./netdata-uninstaller.sh
Update script generated   : ./netdata-updater.sh

netdata-updater.sh can work from cron. It will trigger an email from cron
only if it fails (it does not print anything when it can update netdata).
Run this to automatically check and install netdata updates once per day:

sudo ln -s /root/netdata/netdata-updater.sh /etc/cron.daily/netdata-updater

 --- We are done! ---

  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  enjoy real-time performance and health monitoring...

[root@srv netdata]# systemctl start netdata
[root@srv netdata]# systemctl status netdata
â netdata.service - Real time performance monitoring
   Loaded: loaded (/etc/systemd/system/netdata.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-09-05 13:05:10 CEST; 15s ago
  Process: 21297 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (code=exited, status=0/SUCCESS)
  Process: 21295 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, status=0/SUCCESS)
 Main PID: 21299 (netdata)
   CGroup: /system.slice/netdata.service
           ââ21299 /usr/sbin/netdata -P /run/netdata/netdata.pid -D
           ââ21317 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
           ââ21329 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1
           ââ21331 /usr/libexec/netdata/plugins.d/apps.plugin 1

Sep 05 13:05:10 srv.eu systemd[1]: Starting Real time performance monitoring...
Sep 05 13:05:10 srv.eu systemd[1]: Started Real time performance monitoring.


By default, Netdata default configuration file located at /etc/netdata/netdata.conf. Now, open the file and change the server loopback address to your server's IP address.
sudo nano /etc/netdata/netdata.conf

Make the following changes:
[global]
        run as user = netdata
        web files owner = root
        web files group = root
        # Netdata is not designed to be exposed to potentially hostile
        # networks.See https://github.com/firehol/netdata/issues/164
        bind socket to IP = xx.xx.x.xx

Save and close the file, then restart Netdata service to apply the changes:

#systemctl restart netdata

You can check the status of Netdata with the following command:
#systemctl status netdata



Finally add port to firewall
Netdata runs on port 19999, so you will need to allow port 19999 OUTGOING TCP connections
http://yourserverip:19999

Offline
**
Re: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« Reply #1 on: September 06, 2018, 06:13:07 PM »
Why is there a need for a second tutorial? Is there any difference?

Offline
*
Re: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« Reply #2 on: September 10, 2018, 12:52:38 PM »
As you observed the other tutorial is liking - point outside of centos-webpanel.com
This tutorial remains to community of centos-webpanel.com

Offline
***
Re: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« Reply #3 on: September 12, 2018, 05:14:42 AM »
As you observed the other tutorial is liking - point outside of centos-webpanel.com
This tutorial remains to community of centos-webpanel.com

From nowhere you appear to start posting tutorial to support community. Its very clear to anyone you are from CWP team itself. If you are so concerned about community where is your team to provide support to this community? Also please properly format tutorial so people can understand :)

Re: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« Reply #4 on: April 24, 2019, 02:13:30 PM »
Better stlil, just don't install netdata - ever!

Offline
*
Re: [Tutorial] Installing Netdata on Centos Web Panel (Second guide )
« Reply #5 on: April 25, 2019, 10:39:37 AM »
Why do you even want to install this on your server? its fun to have on your own test server at home (test benching). But never install this software on a server where you serve customers!