Resume compilation of a package from where it failed under Gentoo

Sometimes problems are too specific, but they can show us a path to look for a more general problem and its solution. There was a nasty bug in emerging Firefox package in Gentoo basically it compiled all the source and then it got an error from the build script, but all the source was compiled successfully! So the solution was just to manually install with

ebuild

the package and not to wait for the fix 😉 A good workaround.

But what if we have a big package, which failed during compilation

because of “out of ram” or “out of space” or a missing library, which the maintainer did not included in the dependencies. So tens of minutes or even hours of compilation (yes, there are still such packages like chromium) is wasted and we must start up from the beginning? No you can continue the current failed compilation from the exact point of failure using “ebuild”.
In our example we have a failed compilation of chromium with “out of memory”. We need the exact version of the package, scroll to your emerge command and copy the version, in our case it was: chromium-67.0.3377.1.ebuild
Here are the commands:

STEP 1) Continue compilation

[root@local ]# ebuild /usr/portage/www-client/chromium/chromium-67.0.3377.1.ebuild compile
>>> Existing ${T}/environment for 'chromium-67.0.3377.1' will be sourced.
>>> Run 'clean' to start with a fresh environment.
>>> Checking chromium-67.0.3377.1.tar.xz's mtime...
>>> WORKDIR is up-to-date, keeping...
 * checking ebuild checksums ;-) ...                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                  [ ok ]
 * Checking for at least 3 GiB RAM ...                                                                                                  [ ok ]
 * Checking for at least 5 GiB disk space at "/var/tmp/portage/www-client/chromium-67.0.3377.1/temp" ...                                [ ok ]
>>> It appears that 'setup' has already executed for 'chromium-67.0.3377.1'; skipping.
>>> Remove '/var/tmp/portage/www-client/chromium-67.0.3377.1/.setuped' to force setup.
>>> It appears that 'unpack' has already executed for 'chromium-67.0.3377.1'; skipping.
>>> Remove '/var/tmp/portage/www-client/chromium-67.0.3377.1/.unpacked' to force unpack.
>>> It appears that 'prepare' has already executed for 'chromium-67.0.3377.1'; skipping.
>>> Remove '/var/tmp/portage/www-client/chromium-67.0.3377.1/.prepared' to force prepare.
>>> It appears that 'configure' has already executed for 'chromium-67.0.3377.1'; skipping.
>>> Remove '/var/tmp/portage/www-client/chromium-67.0.3377.1/.configured' to force configure.
>>> Compiling source in /var/tmp/portage/www-client/chromium-67.0.3377.1/work/chromium-67.0.3377.1 ...
ninja -v -j6 -l6 -C out/Release mksnapshot
ninja: Entering directory `out/Release'

As you can see in the output above an existing environment for ‘chromium-67.0.3377.1’ will be sourced.
Here the compilation continue from the last failed compilation script, it skipped multiple source dependencies.

STEP 2) Install the package

In fact two commands:

ebuild /usr/portage/www-client/chromium/chromium-67.0.3377.1.ebuild install
ebuild /usr/portage/www-client/chromium/chromium-67.0.3377.1.ebuild qmerge

The first command “install” will install the package in the working directory of the emerge process and then the second “qmerge” will install all the files of the package in the install directory to the live filesystem and will do some additional checks and modifications in your systems package database to install the package properly as if the emerge was used.

Update netdata monitoring (CentOS 7)

If you have followed the previous howto “Install netdata monitoring in CentOS 7” you can update your installation of

netdata

with just a single command! It’s just so easy with a great piece of software like this:

[root@local ]# cd netdata
[root@local netdata]# ./netdata-updater.sh

Go to your source directory where you downloaded from git at first install (if you had followed our howto above, the directory would be “/root/netdata” as you saw). The installation process had created an updater script named:

netdata-updater.sh

which will do all the work for you!
The script will contact the git and update the source tree, then will configure the installation process with the same configuration directives you passed before and compile the netdata, then will install it the place you expect to be (or where you configure the first time). At the end you get some additional instructions and information. All you custom configuration and tuning of netdata configuration files will be untouched and after the update you’ll have the graphs you used to have (and probably some new and interesting ones?).

The process of updating netdata could be placed in the cron as well, but we doubt it is so important to do it there unattended!

And here is the output of what you can expect when you execute the updater:

[root@local ]# cd netdata
[root@local netdata]# ./netdata-updater.sh
Fri Apr 13 12:22:16 UTC 2018 : INFO:  Running on a terminal - (this script also supports running headless from crontab)

Fri Apr 13 12:22:16 UTC 2018 : INFO:  Updating netdata source from github...
remote: Counting objects: 861, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 861 (delta 568), reused 597 (delta 568), pack-reused 264
Receiving objects: 100% (861/861), 361.65 KiB | 0 bytes/s, done.
Resolving deltas: 100% (644/644), completed with 129 local objects.
From https://github.com/firehol/netdata
   6007852..3f5fe20  master     -> origin/master
From https://github.com/firehol/netdata
 * [new tag]         v1.10.0    -> v1.10.0
Updating 6007852..3f5fe20
Fast-forward
 ChangeLog                                                        |    6 +
 LICENSE-REDISTRIBUTED.md                                         |   90 +-
 README.md                                                        |   55 +-
 conf.d/Makefile.am                                               |    8 +
 conf.d/charts.d/ap.conf                                          |    6 +-
 conf.d/charts.d/apache.conf                                      |    6 +-
 conf.d/charts.d/apcupsd.conf                                     |    6 +-
 conf.d/charts.d/cpu_apps.conf                                    |    6 +-
 conf.d/charts.d/cpufreq.conf                                     |    6 +-
 conf.d/charts.d/example.conf                                     |    6 +-
 conf.d/charts.d/exim.conf                                        |    6 +-
 conf.d/charts.d/hddtemp.conf                                     |    5 +-
 conf.d/charts.d/libreswan.conf                                   |    4 +
 conf.d/charts.d/load_average.conf                                |    8 +-
 conf.d/charts.d/mem_apps.conf                                    |    6 +-
 conf.d/charts.d/mysql.conf                                       |    6 +-
 conf.d/charts.d/nginx.conf                                       |    6 +-
 conf.d/charts.d/nut.conf                                         |    6 +-
 conf.d/charts.d/opensips.conf                                    |    6 +-
 conf.d/charts.d/phpfpm.conf                                      |    7 +-
 conf.d/charts.d/postfix.conf                                     |    7 +-
 conf.d/charts.d/sensors.conf                                     |    7 +-
 conf.d/charts.d/squid.conf                                       |    7 +-
 conf.d/charts.d/tomcat.conf                                      |    6 +-
 conf.d/health.d/backend.conf                                     |    2 +-
 conf.d/health.d/disks.conf                                       |   41 +
 conf.d/health.d/fronius.conf                                     |   11 +
 conf.d/health.d/httpcheck.conf                                   |   99 +++
 conf.d/health.d/portcheck.conf                                   |   48 +
 conf.d/health.d/stiebeleltron.conf                               |   11 +
 conf.d/health_alarm_notify.conf                                  |   46 +
 conf.d/python.d.conf                                             |    5 +-
 conf.d/python.d/httpcheck.conf                                   |   99 +++
 conf.d/python.d/icecast.conf                                     |   83 ++
 conf.d/python.d/ntpd.conf                                        |   23 +-
 conf.d/python.d/portcheck.conf                                   |   70 ++
 conf.d/python.d/traefik.conf                                     |   79 ++
 conf.d/python.d/web_log.conf                                     |    1 +
 conf.d/stream.conf                                               |   14 +
 configs.signatures                                               |   62 ++
 configure.ac                                                     |    2 +-
 diagrams/netdata-overview.xml                                    |    2 +-
 netdata-installer.sh                                             |   11 +-
 netdata.spec.in                                                  |    3 +
 node.d/stiebeleltron.node.js                                     |    2 +-
 plugins.d/alarm-notify.sh                                        |    9 +-
 plugins.d/charts.d.plugin                                        |   11 +-
 plugins.d/tc-qos-helper.sh                                       |   89 +-
 python.d/Makefile.am                                             |    4 +
 python.d/README.md                                               |  171 +++-
 python.d/elasticsearch.chart.py                                  |  101 ++-
 python.d/httpcheck.chart.py                                      |  117 +++
 python.d/icecast.chart.py                                        |   92 ++
 python.d/mongodb.chart.py                                        |    2 +-
 python.d/ntpd.chart.py                                           |   17 +-
 python.d/portcheck.chart.py                                      |  159 ++++
 python.d/postgres.chart.py                                       |  150 +++-
 python.d/python_modules/bases/FrameworkServices/SimpleService.py |    5 +-
 python.d/python_modules/bases/FrameworkServices/UrlService.py    |   33 +-
 python.d/python_modules/bases/charts.py                          |    6 +
 python.d/traefik.chart.py                                        |  181 ++++
 python.d/web_log.chart.py                                        |   70 +-
 src/backend_prometheus.c                                         |  180 ++--
 src/backend_prometheus.h                                         |    4 +-
 src/backends.c                                                   |   36 +-
 src/common.c                                                     |    1 +
 src/common.h                                                     |    2 +
 src/daemon.c                                                     |   14 +-
 src/health.c                                                     |    5 +-
 src/main.c                                                       |    5 +
 src/plugin_tc.c                                                  |    2 +-
 src/proc_diskstats.c                                             |  726 ++++++++++++---
 src/rrd.h                                                        |    4 +
 src/rrd2json.c                                                   |   12 +-
 src/rrdhost.c                                                    |   32 +
 src/rrdpush.c                                                    |   96 +-
 src/rrdset.c                                                     |    8 +-
 src/socket.c                                                     |   76 +-
 src/socket.h                                                     |    3 +
 src/statsd.c                                                     |   52 +-
 src/sys_fs_cgroup.c                                              |    2 +-
 src/web_api_v1.c                                                 |   12 +-
 src/web_client.c                                                 |   47 +-
 src/web_client.h                                                 |    4 +
 src/web_server.c                                                 |   20 +-
 system/netdata-openrc.in                                         |   85 +-
 web/dashboard.js                                                 |   55 +-
 web/dashboard_info.js                                            |  159 +++-
 web/demosites.html                                               |    2 +-
 web/index.html                                                   |   28 +-
 web/netdata-swagger.json                                         | 1420 ++++++++++++++++--------------
 web/netdata-swagger.yaml                                         |   58 +-
 92 files changed, 4165 insertions(+), 1198 deletions(-)
 create mode 100644 conf.d/health.d/fronius.conf
 create mode 100644 conf.d/health.d/httpcheck.conf
 create mode 100644 conf.d/health.d/portcheck.conf
 create mode 100644 conf.d/health.d/stiebeleltron.conf
 create mode 100644 conf.d/python.d/httpcheck.conf
 create mode 100644 conf.d/python.d/icecast.conf
 create mode 100644 conf.d/python.d/portcheck.conf
 create mode 100644 conf.d/python.d/traefik.conf
 create mode 100644 python.d/httpcheck.chart.py
 create mode 100644 python.d/icecast.chart.py
 create mode 100644 python.d/portcheck.chart.py
 create mode 100644 python.d/traefik.chart.py

Fri Apr 13 12:22:18 UTC 2018 : INFO:  Re-installing netdata...

  ^
  |.-.   .-.   .-.   .-.   .  netdata                                        
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!  
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->


  You are about to build and install netdata to your system.

  It will be installed at these locations:

   - the daemon     at /usr/local/netdata/netdata/usr/sbin/netdata
   - config files   in /usr/local/netdata/netdata/etc/netdata
   - web files      in /usr/local/netdata/netdata/usr/share/netdata
   - plugins        in /usr/local/netdata/netdata/usr/libexec/netdata
   - cache files    in /usr/local/netdata/netdata/var/cache/netdata
   - db files       in /usr/local/netdata/netdata/var/lib/netdata
   - log files      in /usr/local/netdata/netdata/var/log/netdata
   - pid file       at /usr/local/netdata/netdata/var/run/netdata.pid
   - logrotate file at /etc/logrotate.d/netdata

  This installer allows you to change the installation path.
  Press Control-C and run the same command with --help for help.


 --- Run autotools to configure the build environment --- 
[/root/netdata]# ./autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
 OK   

[/root/netdata]# ./configure --prefix=/usr/local/netdata/netdata/usr --sysconfdir=/usr/local/netdata/netdata/etc --localstatedir=/usr/local/netdata/netdata/var --with-zlib --with-math --with-user=netdata CFLAGS=-march=native\ -O2\ -msse3\ -fomit-frame-pointer\ -pipe 
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for __attribute__((returns_nonnull))... no
checking for __attribute__((malloc))... yes
checking for __attribute__((noreturn))... yes
checking for __attribute__((noinline))... yes
checking for __attribute__((format))... yes
checking for __attribute__((warn_unused_result))... yes
checking for struct timespec... yes
checking for clockid_t... yes
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for sched_setscheduler... yes
checking for sched_get_priority_min... yes
checking for sched_get_priority_max... yes
checking for nice... yes
checking for recvmmsg... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for inline... inline
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for _Generic... no
checking for __atomic... yes
checking size of void *... 8
checking whether sys/types.h defines makedev... yes
checking for sys/types.h... (cached) yes
checking for netinet/in.h... yes
checking for arpa/nameser.h... yes
checking for netdb.h... yes
checking for resolv.h... yes
checking for sys/prctl.h... yes
checking for linux/netfilter/nfnetlink_conntrack.h... yes
checking for accept4... yes
checking operating system... linux
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for sin in -lm... yes
checking if libm should be used... yes
checking for ZLIB... yes
checking if zlib should be used... yes
checking for UUID... yes
checking for memory allocator... system
checking for mallopt... yes
checking for mallinfo... yes
checking for LIBCAP... no
checking if libcap should be used... no
checking if apps.plugin should be enabled... yes
checking for IPMIMONITORING... yes
checking for
        ipmi_monitoring_sensor_readings_by_record_id,
        ipmi_monitoring_sensor_readings_by_sensor_type,
        ipmi_monitoring_sensor_read_sensor_number,
        ipmi_monitoring_sensor_read_sensor_name,
        ipmi_monitoring_sensor_read_sensor_state,
        ipmi_monitoring_sensor_read_sensor_units,
        ipmi_monitoring_sensor_iterator_next,
        ipmi_monitoring_ctx_sensor_config_file,
        ipmi_monitoring_ctx_sdr_cache_directory,
        ipmi_monitoring_ctx_errormsg,
        ipmi_monitoring_ctx_create
     in -lipmimonitoring... yes
checking ipmi_monitoring.h usability... yes
checking ipmi_monitoring.h presence... yes
checking for ipmi_monitoring.h... yes
checking ipmi_monitoring_bitmasks.h usability... yes
checking ipmi_monitoring_bitmasks.h presence... yes
checking for ipmi_monitoring_bitmasks.h... yes
checking if freeipmi.plugin should be enabled... yes
checking for NFACCT... no
checking for LIBMNL... no
checking if nfacct.plugin should be enabled... no
checking for setns... yes
checking if cgroup-network can be enabled... yes
checking whether C compiler accepts -flto... yes
checking if -flto builds executables... yes
checking if LTO should be enabled... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating charts.d/Makefile
config.status: creating conf.d/Makefile
config.status: creating netdata.spec
config.status: creating python.d/Makefile
config.status: creating node.d/Makefile
config.status: creating plugins.d/Makefile
config.status: creating src/Makefile
config.status: creating system/Makefile
config.status: creating web/Makefile
config.status: creating diagrams/Makefile
config.status: creating makeself/Makefile
config.status: creating contrib/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
 OK   

 --- Cleanup compilation directory --- 
[/root/netdata]# make clean 
Making clean in charts.d
make[1]: Entering directory `/root/netdata/charts.d'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/charts.d'
Making clean in conf.d
make[1]: Entering directory `/root/netdata/conf.d'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/conf.d'
Making clean in diagrams
make[1]: Entering directory `/root/netdata/diagrams'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/diagrams'
Making clean in makeself
make[1]: Entering directory `/root/netdata/makeself'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/makeself'
Making clean in node.d
make[1]: Entering directory `/root/netdata/node.d'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/node.d'
Making clean in plugins.d
make[1]: Entering directory `/root/netdata/plugins.d'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/plugins.d'
Making clean in python.d
make[1]: Entering directory `/root/netdata/python.d'
test -z "python-modules-installer.sh " || rm -f python-modules-installer.sh 
make[1]: Leaving directory `/root/netdata/python.d'
Making clean in src
make[1]: Entering directory `/root/netdata/src'
test -z "apps.plugin freeipmi.plugin cgroup-network" || rm -f apps.plugin freeipmi.plugin cgroup-network
test -z "netdata" || rm -f netdata
rm -f *.o
make[1]: Leaving directory `/root/netdata/src'
Making clean in system
make[1]: Entering directory `/root/netdata/system'
test -z "netdata-openrc netdata.logrotate netdata.service netdata-init-d netdata-lsb netdata-freebsd " || rm -f netdata-openrc netdata.logrotate netdata.service netdata-init-d netdata-lsb netdata-freebsd 
make[1]: Leaving directory `/root/netdata/system'
Making clean in web
make[1]: Entering directory `/root/netdata/web'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/web'
Making clean in contrib
make[1]: Entering directory `/root/netdata/contrib'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/contrib'
Making clean in tests
make[1]: Entering directory `/root/netdata/tests'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/netdata/tests'
make[1]: Entering directory `/root/netdata'
make[1]: Nothing to be done for `clean-am'.
make[1]: Leaving directory `/root/netdata'
 OK   

 --- Compile netdata --- 
[/root/netdata]# make -j8 
make  all-recursive
make[1]: Entering directory `/root/netdata'
Making all in charts.d
make[2]: Entering directory `/root/netdata/charts.d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/charts.d'
Making all in conf.d
make[2]: Entering directory `/root/netdata/conf.d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/conf.d'
Making all in diagrams
make[2]: Entering directory `/root/netdata/diagrams'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/diagrams'
Making all in makeself
make[2]: Entering directory `/root/netdata/makeself'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/makeself'
Making all in node.d
make[2]: Entering directory `/root/netdata/node.d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/node.d'
Making all in plugins.d
make[2]: Entering directory `/root/netdata/plugins.d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/plugins.d'
Making all in python.d
make[2]: Entering directory `/root/netdata/python.d'
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        python-modules-installer.sh.in > python-modules-installer.sh.tmp; then \
        mv "python-modules-installer.sh.tmp" "python-modules-installer.sh"; \
else \
        rm -f "python-modules-installer.sh.tmp"; \
        false; \
fi
make[2]: Leaving directory `/root/netdata/python.d'
Making all in src
make[2]: Entering directory `/root/netdata/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT apps_plugin.o -MD -MP -MF .deps/apps_plugin.Tpo -c -o apps_plugin.o apps_plugin.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT avl.o -MD -MP -MF .deps/avl.Tpo -c -o avl.o avl.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT clocks.o -MD -MP -MF .deps/clocks.Tpo -c -o clocks.o clocks.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT locks.o -MD -MP -MF .deps/locks.Tpo -c -o locks.o locks.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT procfile.o -MD -MP -MF .deps/procfile.Tpo -c -o procfile.o procfile.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT threads.o -MD -MP -MF .deps/threads.Tpo -c -o threads.o threads.c
mv -f .deps/clocks.Tpo .deps/clocks.Po
mv -f .deps/avl.Tpo .deps/avl.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_buffer.o -MD -MP -MF .deps/web_buffer.Tpo -c -o web_buffer.o web_buffer.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT adaptive_resortable_list.o -MD -MP -MF .deps/adaptive_resortable_list.Tpo -c -o adaptive_resortable_list.o adaptive_resortable_list.c
mv -f .deps/procfile.Tpo .deps/procfile.Po
mv -f .deps/locks.Tpo .deps/locks.Po
mv -f .deps/log.Tpo .deps/log.Po
mv -f .deps/threads.Tpo .deps/threads.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT freeipmi_plugin.o -MD -MP -MF .deps/freeipmi_plugin.Tpo -c -o freeipmi_plugin.o freeipmi_plugin.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT cgroup-network.o -MD -MP -MF .deps/cgroup-network.Tpo -c -o cgroup-network.o cgroup-network.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT popen.o -MD -MP -MF .deps/popen.Tpo -c -o popen.o popen.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT signals.o -MD -MP -MF .deps/signals.Tpo -c -o signals.o signals.c
mv -f .deps/common.Tpo .deps/common.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT appconfig.o -MD -MP -MF .deps/appconfig.Tpo -c -o appconfig.o appconfig.c
mv -f .deps/adaptive_resortable_list.Tpo .deps/adaptive_resortable_list.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT backend_prometheus.o -MD -MP -MF .deps/backend_prometheus.Tpo -c -o backend_prometheus.o backend_prometheus.c
mv -f .deps/popen.Tpo .deps/popen.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT backends.o -MD -MP -MF .deps/backends.Tpo -c -o backends.o backends.c
mv -f .deps/signals.Tpo .deps/signals.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT daemon.o -MD -MP -MF .deps/daemon.Tpo -c -o daemon.o daemon.c
mv -f .deps/web_buffer.Tpo .deps/web_buffer.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT dictionary.o -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.o dictionary.c
mv -f .deps/cgroup-network.Tpo .deps/cgroup-network.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT eval.o -MD -MP -MF .deps/eval.Tpo -c -o eval.o eval.c
mv -f .deps/freeipmi_plugin.Tpo .deps/freeipmi_plugin.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT global_statistics.o -MD -MP -MF .deps/global_statistics.Tpo -c -o global_statistics.o global_statistics.c
mv -f .deps/appconfig.Tpo .deps/appconfig.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT health.o -MD -MP -MF .deps/health.Tpo -c -o health.o health.c
mv -f .deps/backend_prometheus.Tpo .deps/backend_prometheus.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT health_config.o -MD -MP -MF .deps/health_config.Tpo -c -o health_config.o health_config.c
mv -f .deps/daemon.Tpo .deps/daemon.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT health_json.o -MD -MP -MF .deps/health_json.Tpo -c -o health_json.o health_json.c
mv -f .deps/global_statistics.Tpo .deps/global_statistics.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT health_log.o -MD -MP -MF .deps/health_log.Tpo -c -o health_log.o health_log.c
mv -f .deps/dictionary.Tpo .deps/dictionary.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/backends.Tpo .deps/backends.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_checks.o -MD -MP -MF .deps/plugin_checks.Tpo -c -o plugin_checks.o plugin_checks.c
mv -f .deps/health.Tpo .deps/health.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_idlejitter.o -MD -MP -MF .deps/plugin_idlejitter.Tpo -c -o plugin_idlejitter.o plugin_idlejitter.c
mv -f .deps/plugin_checks.Tpo .deps/plugin_checks.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugins_d.o -MD -MP -MF .deps/plugins_d.Tpo -c -o plugins_d.o plugins_d.c
mv -f .deps/health_json.Tpo .deps/health_json.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry.o -MD -MP -MF .deps/registry.Tpo -c -o registry.o registry.c
mv -f .deps/health_log.Tpo .deps/health_log.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_db.o -MD -MP -MF .deps/registry_db.Tpo -c -o registry_db.o registry_db.c
mv -f .deps/plugin_idlejitter.Tpo .deps/plugin_idlejitter.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_init.o -MD -MP -MF .deps/registry_init.Tpo -c -o registry_init.o registry_init.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_internals.o -MD -MP -MF .deps/registry_internals.Tpo -c -o registry_internals.o registry_internals.c
mv -f .deps/registry_db.Tpo .deps/registry_db.Po
mv -f .deps/registry_init.Tpo .deps/registry_init.Po
mv -f .deps/registry.Tpo .deps/registry.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_log.o -MD -MP -MF .deps/registry_log.Tpo -c -o registry_log.o registry_log.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_machine.o -MD -MP -MF .deps/registry_machine.Tpo -c -o registry_machine.o registry_machine.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_person.o -MD -MP -MF .deps/registry_person.Tpo -c -o registry_person.o registry_person.c
mv -f .deps/registry_log.Tpo .deps/registry_log.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT registry_url.o -MD -MP -MF .deps/registry_url.Tpo -c -o registry_url.o registry_url.c
mv -f .deps/registry_person.Tpo .deps/registry_person.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrd.o -MD -MP -MF .deps/rrd.Tpo -c -o rrd.o rrd.c
mv -f .deps/plugins_d.Tpo .deps/plugins_d.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrd2json.o -MD -MP -MF .deps/rrd2json.Tpo -c -o rrd2json.o rrd2json.c
mv -f .deps/registry_internals.Tpo .deps/registry_internals.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrd2json_api_old.o -MD -MP -MF .deps/rrd2json_api_old.Tpo -c -o rrd2json_api_old.o rrd2json_api_old.c
mv -f .deps/registry_machine.Tpo .deps/registry_machine.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdcalc.o -MD -MP -MF .deps/rrdcalc.Tpo -c -o rrdcalc.o rrdcalc.c
mv -f .deps/rrd.Tpo .deps/rrd.Po
mv -f .deps/registry_url.Tpo .deps/registry_url.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdcalctemplate.o -MD -MP -MF .deps/rrdcalctemplate.Tpo -c -o rrdcalctemplate.o rrdcalctemplate.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrddim.o -MD -MP -MF .deps/rrddim.Tpo -c -o rrddim.o rrddim.c
mv -f .deps/rrd2json_api_old.Tpo .deps/rrd2json_api_old.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrddimvar.o -MD -MP -MF .deps/rrddimvar.Tpo -c -o rrddimvar.o rrddimvar.c
mv -f .deps/rrddim.Tpo .deps/rrddim.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdfamily.o -MD -MP -MF .deps/rrdfamily.Tpo -c -o rrdfamily.o rrdfamily.c
mv -f .deps/rrdcalc.Tpo .deps/rrdcalc.Po
mv -f .deps/rrdcalctemplate.Tpo .deps/rrdcalctemplate.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdhost.o -MD -MP -MF .deps/rrdhost.Tpo -c -o rrdhost.o rrdhost.c
mv -f .deps/apps_plugin.Tpo .deps/apps_plugin.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdpush.o -MD -MP -MF .deps/rrdpush.Tpo -c -o rrdpush.o rrdpush.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdset.o -MD -MP -MF .deps/rrdset.Tpo -c -o rrdset.o rrdset.c
mv -f .deps/rrdfamily.Tpo .deps/rrdfamily.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdsetvar.o -MD -MP -MF .deps/rrdsetvar.Tpo -c -o rrdsetvar.o rrdsetvar.c
mv -f .deps/rrddimvar.Tpo .deps/rrddimvar.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT rrdvar.o -MD -MP -MF .deps/rrdvar.Tpo -c -o rrdvar.o rrdvar.c
mv -f .deps/rrd2json.Tpo .deps/rrd2json.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT simple_pattern.o -MD -MP -MF .deps/simple_pattern.Tpo -c -o simple_pattern.o simple_pattern.c
mv -f .deps/health_config.Tpo .deps/health_config.Po
mv -f .deps/rrdsetvar.Tpo .deps/rrdsetvar.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT socket.o -MD -MP -MF .deps/socket.Tpo -c -o socket.o socket.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT statistical.o -MD -MP -MF .deps/statistical.Tpo -c -o statistical.o statistical.c
mv -f .deps/rrdpush.Tpo .deps/rrdpush.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT statsd.o -MD -MP -MF .deps/statsd.Tpo -c -o statsd.o statsd.c
mv -f .deps/rrdvar.Tpo .deps/rrdvar.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT storage_number.o -MD -MP -MF .deps/storage_number.Tpo -c -o storage_number.o storage_number.c
mv -f .deps/rrdset.Tpo .deps/rrdset.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT unit_test.o -MD -MP -MF .deps/unit_test.Tpo -c -o unit_test.o unit_test.c
mv -f .deps/eval.Tpo .deps/eval.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT url.o -MD -MP -MF .deps/url.Tpo -c -o url.o url.c
mv -f .deps/rrdhost.Tpo .deps/rrdhost.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_api_old.o -MD -MP -MF .deps/web_api_old.Tpo -c -o web_api_old.o web_api_old.c
mv -f .deps/simple_pattern.Tpo .deps/simple_pattern.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_api_v1.o -MD -MP -MF .deps/web_api_v1.Tpo -c -o web_api_v1.o web_api_v1.c
mv -f .deps/statistical.Tpo .deps/statistical.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_buffer_svg.o -MD -MP -MF .deps/web_buffer_svg.Tpo -c -o web_buffer_svg.o web_buffer_svg.c
mv -f .deps/storage_number.Tpo .deps/storage_number.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_client.o -MD -MP -MF .deps/web_client.Tpo -c -o web_client.o web_client.c
mv -f .deps/url.Tpo .deps/url.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT web_server.o -MD -MP -MF .deps/web_server.Tpo -c -o web_server.o web_server.c
mv -f .deps/web_api_old.Tpo .deps/web_api_old.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT ipc.o -MD -MP -MF .deps/ipc.Tpo -c -o ipc.o ipc.c
mv -f .deps/socket.Tpo .deps/socket.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_nfacct.o -MD -MP -MF .deps/plugin_nfacct.Tpo -c -o plugin_nfacct.o plugin_nfacct.c
mv -f .deps/unit_test.Tpo .deps/unit_test.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_proc.o -MD -MP -MF .deps/plugin_proc.Tpo -c -o plugin_proc.o plugin_proc.c
mv -f .deps/plugin_nfacct.Tpo .deps/plugin_nfacct.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_proc_diskspace.o -MD -MP -MF .deps/plugin_proc_diskspace.Tpo -c -o plugin_proc_diskspace.o plugin_proc_diskspace.c
mv -f .deps/web_api_v1.Tpo .deps/web_api_v1.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT plugin_tc.o -MD -MP -MF .deps/plugin_tc.Tpo -c -o plugin_tc.o plugin_tc.c
mv -f .deps/ipc.Tpo .deps/ipc.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_diskstats.o -MD -MP -MF .deps/proc_diskstats.Tpo -c -o proc_diskstats.o proc_diskstats.c
mv -f .deps/web_buffer_svg.Tpo .deps/web_buffer_svg.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_interrupts.o -MD -MP -MF .deps/proc_interrupts.Tpo -c -o proc_interrupts.o proc_interrupts.c
mv -f .deps/plugin_proc.Tpo .deps/plugin_proc.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_softirqs.o -MD -MP -MF .deps/proc_softirqs.Tpo -c -o proc_softirqs.o proc_softirqs.c
mv -f .deps/web_server.Tpo .deps/web_server.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_loadavg.o -MD -MP -MF .deps/proc_loadavg.Tpo -c -o proc_loadavg.o proc_loadavg.c
mv -f .deps/plugin_proc_diskspace.Tpo .deps/plugin_proc_diskspace.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_meminfo.o -MD -MP -MF .deps/proc_meminfo.Tpo -c -o proc_meminfo.o proc_meminfo.c
mv -f .deps/web_client.Tpo .deps/web_client.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_dev.o -MD -MP -MF .deps/proc_net_dev.Tpo -c -o proc_net_dev.o proc_net_dev.c
mv -f .deps/proc_interrupts.Tpo .deps/proc_interrupts.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_ip_vs_stats.o -MD -MP -MF .deps/proc_net_ip_vs_stats.Tpo -c -o proc_net_ip_vs_stats.o proc_net_ip_vs_stats.c
mv -f .deps/proc_loadavg.Tpo .deps/proc_loadavg.Po
mv -f .deps/proc_softirqs.Tpo .deps/proc_softirqs.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_netstat.o -MD -MP -MF .deps/proc_net_netstat.Tpo -c -o proc_net_netstat.o proc_net_netstat.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_rpc_nfs.o -MD -MP -MF .deps/proc_net_rpc_nfs.Tpo -c -o proc_net_rpc_nfs.o proc_net_rpc_nfs.c
mv -f .deps/proc_meminfo.Tpo .deps/proc_meminfo.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_rpc_nfsd.o -MD -MP -MF .deps/proc_net_rpc_nfsd.Tpo -c -o proc_net_rpc_nfsd.o proc_net_rpc_nfsd.c
mv -f .deps/proc_net_ip_vs_stats.Tpo .deps/proc_net_ip_vs_stats.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_snmp.o -MD -MP -MF .deps/proc_net_snmp.Tpo -c -o proc_net_snmp.o proc_net_snmp.c
mv -f .deps/proc_net_rpc_nfs.Tpo .deps/proc_net_rpc_nfs.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_snmp6.o -MD -MP -MF .deps/proc_net_snmp6.Tpo -c -o proc_net_snmp6.o proc_net_snmp6.c
mv -f .deps/proc_net_dev.Tpo .deps/proc_net_dev.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_sockstat.o -MD -MP -MF .deps/proc_net_sockstat.Tpo -c -o proc_net_sockstat.o proc_net_sockstat.c
mv -f .deps/statsd.Tpo .deps/statsd.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_sockstat6.o -MD -MP -MF .deps/proc_net_sockstat6.Tpo -c -o proc_net_sockstat6.o proc_net_sockstat6.c
mv -f .deps/proc_net_netstat.Tpo .deps/proc_net_netstat.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_softnet_stat.o -MD -MP -MF .deps/proc_net_softnet_stat.Tpo -c -o proc_net_softnet_stat.o proc_net_softnet_stat.c
mv -f .deps/plugin_tc.Tpo .deps/plugin_tc.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_stat_conntrack.o -MD -MP -MF .deps/proc_net_stat_conntrack.Tpo -c -o proc_net_stat_conntrack.o proc_net_stat_conntrack.c
mv -f .deps/proc_net_sockstat.Tpo .deps/proc_net_sockstat.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_net_stat_synproxy.o -MD -MP -MF .deps/proc_net_stat_synproxy.Tpo -c -o proc_net_stat_synproxy.o proc_net_stat_synproxy.c
mv -f .deps/proc_net_softnet_stat.Tpo .deps/proc_net_softnet_stat.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_self_mountinfo.o -MD -MP -MF .deps/proc_self_mountinfo.Tpo -c -o proc_self_mountinfo.o proc_self_mountinfo.c
mv -f .deps/proc_diskstats.Tpo .deps/proc_diskstats.Po
mv -f .deps/proc_net_sockstat6.Tpo .deps/proc_net_sockstat6.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT zfs_common.o -MD -MP -MF .deps/zfs_common.Tpo -c -o zfs_common.o zfs_common.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_spl_kstat_zfs.o -MD -MP -MF .deps/proc_spl_kstat_zfs.Tpo -c -o proc_spl_kstat_zfs.o proc_spl_kstat_zfs.c
mv -f .deps/proc_net_stat_conntrack.Tpo .deps/proc_net_stat_conntrack.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_stat.o -MD -MP -MF .deps/proc_stat.Tpo -c -o proc_stat.o proc_stat.c
mv -f .deps/proc_net_snmp6.Tpo .deps/proc_net_snmp6.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_sys_kernel_random_entropy_avail.o -MD -MP -MF .deps/proc_sys_kernel_random_entropy_avail.Tpo -c -o proc_sys_kernel_random_entropy_avail.o proc_sys_kernel_random_entropy_avail.c
mv -f .deps/proc_spl_kstat_zfs.Tpo .deps/proc_spl_kstat_zfs.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_vmstat.o -MD -MP -MF .deps/proc_vmstat.Tpo -c -o proc_vmstat.o proc_vmstat.c
mv -f .deps/proc_net_stat_synproxy.Tpo .deps/proc_net_stat_synproxy.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT proc_uptime.o -MD -MP -MF .deps/proc_uptime.Tpo -c -o proc_uptime.o proc_uptime.c
mv -f .deps/proc_net_snmp.Tpo .deps/proc_net_snmp.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT sys_kernel_mm_ksm.o -MD -MP -MF .deps/sys_kernel_mm_ksm.Tpo -c -o sys_kernel_mm_ksm.o sys_kernel_mm_ksm.c
mv -f .deps/proc_self_mountinfo.Tpo .deps/proc_self_mountinfo.Po
mv -f .deps/proc_sys_kernel_random_entropy_avail.Tpo .deps/proc_sys_kernel_random_entropy_avail.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT sys_devices_system_edac_mc.o -MD -MP -MF .deps/sys_devices_system_edac_mc.Tpo -c -o sys_devices_system_edac_mc.o sys_devices_system_edac_mc.c
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT sys_devices_system_node.o -MD -MP -MF .deps/sys_devices_system_node.Tpo -c -o sys_devices_system_node.o sys_devices_system_node.c
mv -f .deps/proc_vmstat.Tpo .deps/proc_vmstat.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT sys_fs_cgroup.o -MD -MP -MF .deps/sys_fs_cgroup.Tpo -c -o sys_fs_cgroup.o sys_fs_cgroup.c
mv -f .deps/zfs_common.Tpo .deps/zfs_common.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DVARLIB_DIR="\"/usr/local/netdata/netdata/var/lib/netdata\"" -DCACHE_DIR="\"/usr/local/netdata/netdata/var/cache/netdata\"" -DCONFIG_DIR="\"/usr/local/netdata/netdata/etc/netdata\"" -DLOG_DIR="\"/usr/local/netdata/netdata/var/log/netdata\"" -DPLUGINS_DIR="\"/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d\"" -DRUN_DIR="\"/usr/local/netdata/netdata/var/run/netdata\"" -DWEB_DIR="\"/usr/local/netdata/netdata/usr/share/netdata/web\""          -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto -MT sys_fs_btrfs.o -MD -MP -MF .deps/sys_fs_btrfs.Tpo -c -o sys_fs_btrfs.o sys_fs_btrfs.c
mv -f .deps/sys_kernel_mm_ksm.Tpo .deps/sys_kernel_mm_ksm.Po
gcc        -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto   -o apps.plugin apps_plugin.o avl.o clocks.o common.o locks.o log.o procfile.o threads.o web_buffer.o  adaptive_resortable_list.o -lm   
mv -f .deps/proc_net_rpc_nfsd.Tpo .deps/proc_net_rpc_nfsd.Po
gcc        -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto   -o freeipmi.plugin freeipmi_plugin.o clocks.o common.o locks.o log.o procfile.o threads.o -lipmimonitoring    
mv -f .deps/proc_stat.Tpo .deps/proc_stat.Po
mv -f .deps/proc_uptime.Tpo .deps/proc_uptime.Po
gcc        -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto   -o cgroup-network cgroup-network.o clocks.o common.o locks.o log.o procfile.o popen.o signals.o threads.o -lm   
mv -f .deps/sys_devices_system_edac_mc.Tpo .deps/sys_devices_system_edac_mc.Po
mv -f .deps/sys_devices_system_node.Tpo .deps/sys_devices_system_node.Po
^[[Bmv -f .deps/sys_fs_btrfs.Tpo .deps/sys_fs_btrfs.Po
mv -f .deps/sys_fs_cgroup.Tpo .deps/sys_fs_cgroup.Po
gcc        -march=native -O2 -msse3 -fomit-frame-pointer -pipe -pthread -flto   -o netdata adaptive_resortable_list.o appconfig.o avl.o backend_prometheus.o backends.o clocks.o common.o daemon.o dictionary.o eval.o global_statistics.o health.o health_config.o health_json.o health_log.o locks.o log.o main.o plugin_checks.o plugin_idlejitter.o plugins_d.o popen.o procfile.o registry.o registry_db.o registry_init.o registry_internals.o registry_log.o registry_machine.o registry_person.o registry_url.o rrd.o rrd2json.o rrd2json_api_old.o rrdcalc.o rrdcalctemplate.o rrddim.o rrddimvar.o rrdfamily.o rrdhost.o rrdpush.o rrdset.o rrdsetvar.o rrdvar.o signals.o simple_pattern.o socket.o statistical.o statsd.o storage_number.o threads.o unit_test.o url.o web_api_old.o web_api_v1.o web_buffer.o web_buffer_svg.o web_client.o web_server.o   ipc.o plugin_nfacct.o plugin_proc.o plugin_proc_diskspace.o plugin_tc.o proc_diskstats.o proc_interrupts.o proc_softirqs.o proc_loadavg.o proc_meminfo.o proc_net_dev.o proc_net_ip_vs_stats.o proc_net_netstat.o proc_net_rpc_nfs.o proc_net_rpc_nfsd.o proc_net_snmp.o proc_net_snmp6.o proc_net_sockstat.o proc_net_sockstat6.o proc_net_softnet_stat.o proc_net_stat_conntrack.o proc_net_stat_synproxy.o proc_self_mountinfo.o zfs_common.o proc_spl_kstat_zfs.o proc_stat.o proc_sys_kernel_random_entropy_avail.o proc_vmstat.o proc_uptime.o sys_kernel_mm_ksm.o sys_devices_system_edac_mc.o sys_devices_system_node.o sys_fs_cgroup.o sys_fs_btrfs.o -lm  -lz   -luuid    
make[2]: Leaving directory `/root/netdata/src'
Making all in system
make[2]: Entering directory `/root/netdata/system'
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata-openrc.in > netdata-openrc.tmp; then \
        mv "netdata-openrc.tmp" "netdata-openrc"; \
else \
        rm -f "netdata-openrc.tmp"; \
        false; \
fi
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata.logrotate.in > netdata.logrotate.tmp; then \
        mv "netdata.logrotate.tmp" "netdata.logrotate"; \
else \
        rm -f "netdata.logrotate.tmp"; \
        false; \
fi
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata.service.in > netdata.service.tmp; then \
        mv "netdata.service.tmp" "netdata.service"; \
else \
        rm -f "netdata.service.tmp"; \
        false; \
fi
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata-init-d.in > netdata-init-d.tmp; then \
        mv "netdata-init-d.tmp" "netdata-init-d"; \
else \
        rm -f "netdata-init-d.tmp"; \
        false; \
fi
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata-lsb.in > netdata-lsb.tmp; then \
        mv "netdata-lsb.tmp" "netdata-lsb"; \
else \
        rm -f "netdata-lsb.tmp"; \
        false; \
fi
if sed \
        -e 's#[@]localstatedir_POST@#/usr/local/netdata/netdata/var#g' \
        -e 's#[@]sbindir_POST@#/usr/local/netdata/netdata/usr/sbin#g' \
        -e 's#[@]sysconfdir_POST@#/usr/local/netdata/netdata/etc#g' \
        -e 's#[@]pythondir_POST@#/usr/local/netdata/netdata/usr/libexec/netdata/python.d#g' \
        netdata-freebsd.in > netdata-freebsd.tmp; then \
        mv "netdata-freebsd.tmp" "netdata-freebsd"; \
else \
        rm -f "netdata-freebsd.tmp"; \
        false; \
fi
make[2]: Leaving directory `/root/netdata/system'
Making all in web
make[2]: Entering directory `/root/netdata/web'
if test -d "../.git"; then \
        git --git-dir="../.git" log -n 1 --format=%H; \
fi > version.txt.tmp
test -s version.txt.tmp || echo 0 > version.txt.tmp
mv version.txt.tmp version.txt
make[2]: Leaving directory `/root/netdata/web'
Making all in contrib
make[2]: Entering directory `/root/netdata/contrib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/contrib'
Making all in tests
make[2]: Entering directory `/root/netdata/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/netdata/tests'
make[2]: Entering directory `/root/netdata'
make[2]: Leaving directory `/root/netdata'
make[1]: Leaving directory `/root/netdata'
 OK   

 --- Migrate configuration files for node.d.plugin and charts.d.plugin --- 
 --- Backup existing netdata configuration before installing it --- 
File '/usr/local/netdata/netdata/etc/netdata/statsd.d/example.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/node.d.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health_email_recipients.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/fping.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/stream.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/netdata.conf'  has been edited by user. Keeping it.
[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/netdata.conf /usr/local/netdata/netdata/etc/netdata/netdata.conf.installer_backup..17939 
 OK   

File '/usr/local/netdata/netdata/etc/netdata/charts.d/postfix.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/tomcat.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/nginx.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/load_average.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/exim.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/cpu_apps.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/sensors.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/example.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/libreswan.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/ap.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/phpfpm.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/mysql.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/hddtemp.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/apcupsd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/squid.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/cpufreq.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/mem_apps.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/opensips.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/apache.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/charts.d/nut.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/mdstat.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/retroshare.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/mongodb.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/dns_query_time.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/varnish.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/postfix.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/ovpn_status_log.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/tomcat.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/ipfs.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf'  has been edited by user. Keeping it.
[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf /usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf.installer_backup..17939 
 OK   

File '/usr/local/netdata/netdata/etc/netdata/python.d/elasticsearch.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/smartd_log.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/rabbitmq.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/couchdb.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/exim.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/sensors.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/example.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/ntpd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/springboot.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/ceph.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf'  has been edited by user. Keeping it.
[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf /usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf.installer_backup..17939 
 OK   

File '/usr/local/netdata/netdata/etc/netdata/python.d/chrony.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/nginx_plus.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/memcached.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/go_expvar.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/isc_dhcpd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/powerdns.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/mysql.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/hddtemp.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/squid.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/fail2ban.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/cpufreq.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/web_log.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/redis.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/postgres.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/dnsdist.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/beanstalk.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/bind_rndc.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/haproxy.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/samba.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/nsd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/apache.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/dovecot.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/python.d/freeradius.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/mdstat.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/retroshare.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/mongodb.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/disks.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/net.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/varnish.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/named.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/lighttpd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/ipfs.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/nginx.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/elasticsearch.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/memory.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/couchdb.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/btrfs.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/zfs.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/tcp_conn.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/netfilter.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/ceph.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/ram.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/swap.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/fping.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/cpu.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/nginx_plus.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/tcp_resets.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/beanstalkd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/memcached.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/tcp_listen.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/backend.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/isc_dhcpd.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/qos.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/mysql.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/tcp_orphans.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/squid.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/ipc.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/web_log.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/redis.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/postgres.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/bind_rndc.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/entropy.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/tcp_mem.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/haproxy.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/udp_errors.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/ipmi.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/apache.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/health.d/softnet.conf' is stock version.
File '/usr/local/netdata/netdata/etc/netdata/apps_groups.conf'  has been edited by user. Keeping it.
[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/apps_groups.conf /usr/local/netdata/netdata/etc/netdata/apps_groups.conf.installer_backup..17939 
 OK   

File '/usr/local/netdata/netdata/etc/netdata/health_alarm_notify.conf' is stock version.
 --- Install netdata --- 
[/root/netdata]# make install 
Making install in charts.d
make[1]: Entering directory `/root/netdata/charts.d'
make[2]: Entering directory `/root/netdata/charts.d'
make[2]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/charts.d'
 /usr/bin/install -c -m 644 README.md ap.chart.sh apcupsd.chart.sh apache.chart.sh cpu_apps.chart.sh cpufreq.chart.sh example.chart.sh exim.chart.sh hddtemp.chart.sh libreswan.chart.sh load_average.chart.sh mem_apps.chart.sh mysql.chart.sh nginx.chart.sh nut.chart.sh opensips.chart.sh phpfpm.chart.sh postfix.chart.sh sensors.chart.sh squid.chart.sh tomcat.chart.sh '/usr/local/netdata/netdata/usr/libexec/netdata/charts.d'
make[2]: Leaving directory `/root/netdata/charts.d'
make[1]: Leaving directory `/root/netdata/charts.d'
Making install in conf.d
make[1]: Entering directory `/root/netdata/conf.d'
make[2]: Entering directory `/root/netdata/conf.d'
make[2]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata/charts.d'
 /usr/bin/install -c -m 644 charts.d/apache.conf charts.d/apcupsd.conf charts.d/cpufreq.conf charts.d/exim.conf charts.d/libreswan.conf charts.d/load_average.conf charts.d/mysql.conf charts.d/nut.conf charts.d/phpfpm.conf charts.d/sensors.conf charts.d/tomcat.conf charts.d/ap.conf charts.d/cpu_apps.conf charts.d/example.conf charts.d/hddtemp.conf charts.d/mem_apps.conf charts.d/nginx.conf charts.d/opensips.conf charts.d/postfix.conf charts.d/squid.conf '/usr/local/netdata/netdata/etc/netdata/charts.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata'
 /usr/bin/install -c -m 644 apps_groups.conf charts.d.conf fping.conf node.d.conf python.d.conf health_alarm_notify.conf health_email_recipients.conf stream.conf '/usr/local/netdata/netdata/etc/netdata'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata/health.d'
 /usr/bin/install -c -m 644 health.d/apache.conf health.d/backend.conf health.d/beanstalkd.conf health.d/bind_rndc.conf health.d/btrfs.conf health.d/ceph.conf health.d/cpu.conf health.d/couchdb.conf health.d/disks.conf health.d/elasticsearch.conf health.d/entropy.conf health.d/fping.conf health.d/fronius.conf health.d/haproxy.conf health.d/httpcheck.conf health.d/ipc.conf health.d/ipfs.conf health.d/ipmi.conf health.d/isc_dhcpd.conf health.d/lighttpd.conf health.d/mdstat.conf health.d/memcached.conf health.d/memory.conf health.d/mongodb.conf health.d/mysql.conf health.d/named.conf health.d/net.conf health.d/netfilter.conf health.d/nginx.conf health.d/nginx_plus.conf health.d/portcheck.conf health.d/postgres.conf health.d/qos.conf health.d/ram.conf health.d/redis.conf health.d/retroshare.conf health.d/softnet.conf health.d/squid.conf health.d/stiebeleltron.conf health.d/swap.conf '/usr/local/netdata/netdata/etc/netdata/health.d'
 /usr/bin/install -c -m 644 health.d/tcp_conn.conf health.d/tcp_listen.conf health.d/tcp_mem.conf health.d/tcp_orphans.conf health.d/tcp_resets.conf health.d/udp_errors.conf health.d/varnish.conf health.d/web_log.conf health.d/zfs.conf '/usr/local/netdata/netdata/etc/netdata/health.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata/node.d'
 /usr/bin/install -c -m 644 node.d/README.md node.d/fronius.conf.md node.d/named.conf.md node.d/sma_webbox.conf.md node.d/snmp.conf.md node.d/stiebeleltron.conf.md '/usr/local/netdata/netdata/etc/netdata/node.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata/python.d'
 /usr/bin/install -c -m 644 python.d/apache.conf python.d/beanstalk.conf python.d/bind_rndc.conf python.d/ceph.conf python.d/chrony.conf python.d/couchdb.conf python.d/cpufreq.conf python.d/dns_query_time.conf python.d/dnsdist.conf python.d/dovecot.conf python.d/elasticsearch.conf python.d/example.conf python.d/exim.conf python.d/fail2ban.conf python.d/freeradius.conf python.d/go_expvar.conf python.d/haproxy.conf python.d/hddtemp.conf python.d/httpcheck.conf python.d/icecast.conf python.d/ipfs.conf python.d/isc_dhcpd.conf python.d/mdstat.conf python.d/memcached.conf python.d/mongodb.conf python.d/mysql.conf python.d/nginx.conf python.d/nginx_plus.conf python.d/nsd.conf python.d/ntpd.conf python.d/ovpn_status_log.conf python.d/phpfpm.conf python.d/portcheck.conf python.d/postfix.conf python.d/postgres.conf python.d/powerdns.conf python.d/rabbitmq.conf python.d/redis.conf python.d/retroshare.conf python.d/samba.conf '/usr/local/netdata/netdata/etc/netdata/python.d'
 /usr/bin/install -c -m 644 python.d/sensors.conf python.d/springboot.conf python.d/squid.conf python.d/smartd_log.conf python.d/tomcat.conf python.d/traefik.conf python.d/varnish.conf python.d/web_log.conf '/usr/local/netdata/netdata/etc/netdata/python.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/etc/netdata/statsd.d'
 /usr/bin/install -c -m 644 statsd.d/example.conf '/usr/local/netdata/netdata/etc/netdata/statsd.d'
make[2]: Leaving directory `/root/netdata/conf.d'
make[1]: Leaving directory `/root/netdata/conf.d'
Making install in diagrams
make[1]: Entering directory `/root/netdata/diagrams'
make[2]: Entering directory `/root/netdata/diagrams'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata/diagrams'
make[1]: Leaving directory `/root/netdata/diagrams'
Making install in makeself
make[1]: Entering directory `/root/netdata/makeself'
make[2]: Entering directory `/root/netdata/makeself'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata/makeself'
make[1]: Leaving directory `/root/netdata/makeself'
Making install in node.d
make[1]: Entering directory `/root/netdata/node.d'
make[2]: Entering directory `/root/netdata/node.d'
make[2]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/node.d'
 /usr/bin/install -c -m 644 README.md named.node.js fronius.node.js sma_webbox.node.js snmp.node.js stiebeleltron.node.js '/usr/local/netdata/netdata/usr/libexec/netdata/node.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/node.d/node_modules'
 /usr/bin/install -c -m 644 node_modules/netdata.js node_modules/extend.js node_modules/pixl-xml.js node_modules/net-snmp.js node_modules/asn1-ber.js '/usr/local/netdata/netdata/usr/libexec/netdata/node.d/node_modules'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/node.d/node_modules/lib/ber'
 /usr/bin/install -c -m 644 node_modules/lib/ber/index.js node_modules/lib/ber/errors.js node_modules/lib/ber/reader.js node_modules/lib/ber/types.js node_modules/lib/ber/writer.js '/usr/local/netdata/netdata/usr/libexec/netdata/node.d/node_modules/lib/ber'
make[2]: Leaving directory `/root/netdata/node.d'
make[1]: Leaving directory `/root/netdata/node.d'
Making install in plugins.d
make[1]: Entering directory `/root/netdata/plugins.d'
make[2]: Entering directory `/root/netdata/plugins.d'
make[2]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
 /usr/bin/install -c -m 644 README.md '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
 /usr/bin/install -c alarm-email.sh alarm-notify.sh alarm-test.sh cgroup-name.sh cgroup-network-helper.sh charts.d.dryrun-helper.sh charts.d.plugin fping.plugin node.d.plugin python.d.plugin tc-qos-helper.sh loopsleepms.sh.inc '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
make[2]: Leaving directory `/root/netdata/plugins.d'
make[1]: Leaving directory `/root/netdata/plugins.d'
Making install in python.d
make[1]: Entering directory `/root/netdata/python.d'
make[2]: Entering directory `/root/netdata/python.d'
make[2]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/bases'
 /usr/bin/install -c -m 644 python_modules/bases/__init__.py python_modules/bases/charts.py python_modules/bases/collection.py python_modules/bases/loaders.py python_modules/bases/loggers.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/bases'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices'
 /usr/bin/install -c -m 644 python_modules/bases/FrameworkServices/__init__.py python_modules/bases/FrameworkServices/ExecutableService.py python_modules/bases/FrameworkServices/LogService.py python_modules/bases/FrameworkServices/MySQLService.py python_modules/bases/FrameworkServices/SimpleService.py python_modules/bases/FrameworkServices/SocketService.py python_modules/bases/FrameworkServices/UrlService.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d'
 /usr/bin/install -c -m 644 README.md apache.chart.py beanstalk.chart.py bind_rndc.chart.py ceph.chart.py chrony.chart.py couchdb.chart.py cpufreq.chart.py cpuidle.chart.py dns_query_time.chart.py dnsdist.chart.py dovecot.chart.py elasticsearch.chart.py example.chart.py exim.chart.py fail2ban.chart.py freeradius.chart.py go_expvar.chart.py haproxy.chart.py hddtemp.chart.py httpcheck.chart.py icecast.chart.py ipfs.chart.py isc_dhcpd.chart.py mdstat.chart.py memcached.chart.py mongodb.chart.py mysql.chart.py nginx.chart.py nginx_plus.chart.py nsd.chart.py ntpd.chart.py ovpn_status_log.chart.py phpfpm.chart.py portcheck.chart.py postfix.chart.py postgres.chart.py powerdns.chart.py rabbitmq.chart.py redis.chart.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d'
 /usr/bin/install -c -m 644 retroshare.chart.py samba.chart.py sensors.chart.py springboot.chart.py squid.chart.py smartd_log.chart.py tomcat.chart.py traefik.chart.py varnish.chart.py web_log.chart.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d'
 /usr/bin/install -c python-modules-installer.sh '/usr/local/netdata/netdata/usr/libexec/netdata/python.d'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3'
 /usr/bin/install -c -m 644 python_modules/urllib3/__init__.py python_modules/urllib3/_collections.py python_modules/urllib3/connection.py python_modules/urllib3/connectionpool.py python_modules/urllib3/exceptions.py python_modules/urllib3/fields.py python_modules/urllib3/filepost.py python_modules/urllib3/response.py python_modules/urllib3/poolmanager.py python_modules/urllib3/request.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages/backports'
 /usr/bin/install -c -m 644 python_modules/urllib3/packages/backports/__init__.py python_modules/urllib3/packages/backports/makefile.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages/backports'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/contrib'
 /usr/bin/install -c -m 644 python_modules/urllib3/contrib/__init__.py python_modules/urllib3/contrib/appengine.py python_modules/urllib3/contrib/ntlmpool.py python_modules/urllib3/contrib/pyopenssl.py python_modules/urllib3/contrib/securetransport.py python_modules/urllib3/contrib/socks.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/contrib'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages'
 /usr/bin/install -c -m 644 python_modules/urllib3/packages/__init__.py python_modules/urllib3/packages/ordered_dict.py python_modules/urllib3/packages/six.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport'
 /usr/bin/install -c -m 644 python_modules/urllib3/contrib/_securetransport/__init__.py python_modules/urllib3/contrib/_securetransport/bindings.py python_modules/urllib3/contrib/_securetransport/low_level.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ssl_match_hostname'
 /usr/bin/install -c -m 644 python_modules/urllib3/packages/ssl_match_hostname/__init__.py python_modules/urllib3/packages/ssl_match_hostname/_implementation.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ssl_match_hostname'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/util'
 /usr/bin/install -c -m 644 python_modules/urllib3/util/__init__.py python_modules/urllib3/util/connection.py python_modules/urllib3/util/request.py python_modules/urllib3/util/response.py python_modules/urllib3/util/retry.py python_modules/urllib3/util/selectors.py python_modules/urllib3/util/ssl_.py python_modules/urllib3/util/timeout.py python_modules/urllib3/util/url.py python_modules/urllib3/util/wait.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/urllib3/util'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules'
 /usr/bin/install -c -m 644 python_modules/__init__.py python_modules/base.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/pyyaml2'
 /usr/bin/install -c -m 644 python_modules/pyyaml2/__init__.py python_modules/pyyaml2/composer.py python_modules/pyyaml2/constructor.py python_modules/pyyaml2/cyaml.py python_modules/pyyaml2/dumper.py python_modules/pyyaml2/emitter.py python_modules/pyyaml2/error.py python_modules/pyyaml2/events.py python_modules/pyyaml2/loader.py python_modules/pyyaml2/nodes.py python_modules/pyyaml2/parser.py python_modules/pyyaml2/reader.py python_modules/pyyaml2/representer.py python_modules/pyyaml2/resolver.py python_modules/pyyaml2/scanner.py python_modules/pyyaml2/serializer.py python_modules/pyyaml2/tokens.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/pyyaml2'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/pyyaml3'
 /usr/bin/install -c -m 644 python_modules/pyyaml3/__init__.py python_modules/pyyaml3/composer.py python_modules/pyyaml3/constructor.py python_modules/pyyaml3/cyaml.py python_modules/pyyaml3/dumper.py python_modules/pyyaml3/emitter.py python_modules/pyyaml3/error.py python_modules/pyyaml3/events.py python_modules/pyyaml3/loader.py python_modules/pyyaml3/nodes.py python_modules/pyyaml3/parser.py python_modules/pyyaml3/reader.py python_modules/pyyaml3/representer.py python_modules/pyyaml3/resolver.py python_modules/pyyaml3/scanner.py python_modules/pyyaml3/serializer.py python_modules/pyyaml3/tokens.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/pyyaml3'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/third_party'
 /usr/bin/install -c -m 644 python_modules/third_party/__init__.py python_modules/third_party/ordereddict.py python_modules/third_party/lm_sensors.py '/usr/local/netdata/netdata/usr/libexec/netdata/python.d/python_modules/third_party'
make[2]: Leaving directory `/root/netdata/python.d'
make[1]: Leaving directory `/root/netdata/python.d'
Making install in src
make[1]: Entering directory `/root/netdata/src'
make[2]: Entering directory `/root/netdata/src'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/sbin'
  /usr/bin/install -c netdata '/usr/local/netdata/netdata/usr/sbin'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/var/cache/netdata'
 /usr/bin/install -c -m 644 .keep '/usr/local/netdata/netdata/var/cache/netdata'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/var/log/netdata'
 /usr/bin/install -c -m 644 .keep '/usr/local/netdata/netdata/var/log/netdata'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/var/lib/netdata/registry'
 /usr/bin/install -c -m 644 .keep '/usr/local/netdata/netdata/var/lib/netdata/registry'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/var/lib/netdata'
 /usr/bin/install -c -m 644 .keep '/usr/local/netdata/netdata/var/lib/netdata'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
  /usr/bin/install -c apps.plugin freeipmi.plugin cgroup-network '/usr/local/netdata/netdata/usr/libexec/netdata/plugins.d'
make[2]: Leaving directory `/root/netdata/src'
make[1]: Leaving directory `/root/netdata/src'
Making install in system
make[1]: Entering directory `/root/netdata/system'
make[2]: Entering directory `/root/netdata/system'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata/system'
make[1]: Leaving directory `/root/netdata/system'
Making install in web
make[1]: Entering directory `/root/netdata/web'
if test -d "../.git"; then \
        git --git-dir="../.git" log -n 1 --format=%H; \
fi > version.txt.tmp
test -s version.txt.tmp || echo 0 > version.txt.tmp
mv version.txt.tmp version.txt
make[2]: Entering directory `/root/netdata/web'
make[2]: Nothing to be done for `install-exec-am'.
if test -d "../.git"; then \
        git --git-dir="../.git" log -n 1 --format=%H; \
fi > version.txt.tmp
test -s version.txt.tmp || echo 0 > version.txt.tmp
mv version.txt.tmp version.txt
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web'
 /usr/bin/install -c -m 644 demo.html demo2.html demosites.html demosites2.html dashboard.html dashboard.js dashboard_info.js dashboard_info_custom_example.js dashboard.css dashboard.slate.css favicon.ico goto-host-from-alarm.html index.html infographic.html netdata-swagger.yaml netdata-swagger.json robots.txt refresh-badges.js registry.html sitemap.xml tv.html version.txt '/usr/local/netdata/netdata/usr/share/netdata/web'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/css'
 /usr/bin/install -c -m 644 css/morris-0.5.1.css css/bootstrap-3.3.7.css css/bootstrap-theme-3.3.7.min.css css/bootstrap-slate-flat-3.3.7.css css/bootstrap-slider-10.0.0.min.css css/bootstrap-toggle-2.2.2.min.css css/c3-0.4.18.min.css '/usr/local/netdata/netdata/usr/share/netdata/web/css'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/.well-known/dnt'
 /usr/bin/install -c -m 644 .well-known/dnt/cookies '/usr/local/netdata/netdata/usr/share/netdata/web/.well-known/dnt'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/fonts'
 /usr/bin/install -c -m 644 fonts/glyphicons-halflings-regular.eot fonts/glyphicons-halflings-regular.svg fonts/glyphicons-halflings-regular.ttf fonts/glyphicons-halflings-regular.woff fonts/glyphicons-halflings-regular.woff2 '/usr/local/netdata/netdata/usr/share/netdata/web/fonts'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/images'
 /usr/bin/install -c -m 644 images/alert-128-orange.png images/alert-128-red.png images/alert-multi-size-orange.ico images/alert-multi-size-red.ico images/animated.gif images/check-mark-2-128-green.png images/check-mark-2-multi-size-green.ico images/post.png images/seo-performance-16.png images/seo-performance-24.png images/seo-performance-32.png images/seo-performance-48.png images/seo-performance-64.png images/seo-performance-72.png images/seo-performance-114.png images/seo-performance-128.png images/seo-performance-256.png images/seo-performance-512.png images/seo-performance-multi-size.ico images/seo-performance-multi-size.icns '/usr/local/netdata/netdata/usr/share/netdata/web/images'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/lib'
 /usr/bin/install -c -m 644 lib/bootstrap-3.3.7.min.js lib/bootstrap-slider-10.0.0.min.js lib/bootstrap-table-1.11.0.min.js lib/bootstrap-table-export-1.11.0.min.js lib/bootstrap-toggle-2.2.2.min.js lib/clipboard-polyfill-be05dad.js lib/c3-0.4.18.min.js lib/d3-4.12.2.min.js lib/d3pie-0.2.1-netdata-3.js lib/dygraph-c91c859.min.js lib/dygraph-smooth-plotter-c91c859.js lib/fontawesome-all-5.0.1.min.js lib/gauge-1.3.2.min.js lib/jquery-2.2.4.min.js lib/jquery.easypiechart-97b5824.min.js lib/jquery.peity-3.2.0.min.js lib/jquery.sparkline-2.1.2.min.js lib/lz-string-1.4.4.min.js lib/morris-0.5.1.min.js lib/pako-1.0.6.min.js lib/perfect-scrollbar-0.6.15.min.js lib/raphael-2.2.4-min.js lib/tableExport-1.6.0.min.js '/usr/local/netdata/netdata/usr/share/netdata/web/lib'
 /usr/bin/mkdir -p '/usr/local/netdata/netdata/usr/share/netdata/web/old'
 /usr/bin/install -c -m 644 old/datasource.html old/index.html old/index.js old/netdata.js old/theme.css '/usr/local/netdata/netdata/usr/share/netdata/web/old'
make[2]: Leaving directory `/root/netdata/web'
make[1]: Leaving directory `/root/netdata/web'
Making install in contrib
make[1]: Entering directory `/root/netdata/contrib'
make[2]: Entering directory `/root/netdata/contrib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata/contrib'
make[1]: Leaving directory `/root/netdata/contrib'
Making install in tests
make[1]: Entering directory `/root/netdata/tests'
make[2]: Entering directory `/root/netdata/tests'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata/tests'
make[1]: Leaving directory `/root/netdata/tests'
make[1]: Entering directory `/root/netdata'
make[2]: Entering directory `/root/netdata'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/netdata'
make[1]: Leaving directory `/root/netdata'
 OK   

 --- Restore user edited netdata configuration files --- 
[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/netdata.conf.installer_backup..17939 /usr/local/netdata/netdata/etc/netdata/netdata.conf 
 OK   

[/root/netdata]# rm -f /usr/local/netdata/netdata/etc/netdata/netdata.conf.installer_backup..17939 
 OK   

[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf.installer_backup..17939 /usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf 
 OK   

[/root/netdata]# rm -f /usr/local/netdata/netdata/etc/netdata/python.d/nginx.conf.installer_backup..17939 
 OK   

[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf.installer_backup..17939 /usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf 
 OK   

[/root/netdata]# rm -f /usr/local/netdata/netdata/etc/netdata/python.d/phpfpm.conf.installer_backup..17939 
 OK   

[/root/netdata]# cp -a /usr/local/netdata/netdata/etc/netdata/apps_groups.conf.installer_backup..17939 /usr/local/netdata/netdata/etc/netdata/apps_groups.conf 
 OK   

[/root/netdata]# rm -f /usr/local/netdata/netdata/etc/netdata/apps_groups.conf.installer_backup..17939 
 OK   

 --- Fix generated files permissions --- 
[/root/netdata]# find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf -a \! -name \*.service -a \! -name \*.logrotate -exec chmod 755 \{\} \; 
 OK   

 --- Add user netdata to required user groups --- 
Group 'netdata' already exists.
User 'netdata' already exists.
Group 'docker' does not exist.
User 'netdata' is already in group 'nginx'.
Group 'varnish' does not exist.
User 'netdata' is already in group 'haproxy'.
User 'netdata' is already in group 'adm'.
Group 'nsd' does not exist.
Group 'proxy' does not exist.
Group 'squid' does not exist.
Group 'ceph' does not exist.
 --- Install logrotate configuration for netdata --- 
[/root/netdata]# chmod 644 /etc/logrotate.d/netdata 
 OK   

 --- Read installation options from netdata.conf --- 

    Permissions
    - netdata user     : netdata
    - netdata group    : netdata
    - web files user   : netdata
    - web files group  : netdata
    - root user        : root

    Directories
    - netdata conf dir : /usr/local/netdata/netdata/etc/netdata
    - netdata log dir  : /usr/local/netdata/netdata/var/log/netdata
    - netdata run dir  : /usr/local/netdata/netdata/var/run
    - netdata lib dir  : /usr/local/netdata/netdata/var/lib/netdata
    - netdata web dir  : /usr/local/netdata/netdata/usr/share/netdata/web
    - netdata cache dir: /usr/local/netdata/netdata/var/cache/netdata

    Other
    - netdata port     : 19999

 --- Fix permissions of netdata directories (using user 'netdata') --- 
[/root/netdata]# chown -R root:netdata /usr/local/netdata/netdata/etc/netdata 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/etc/netdata -type f -exec chmod 0640 \{\} \; 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/etc/netdata -type d -exec chmod 0755 \{\} \; 
 OK   

[/root/netdata]# chown -R netdata:netdata /usr/local/netdata/netdata/usr/share/netdata/web 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/share/netdata/web -type f -exec chmod 0664 \{\} \; 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/share/netdata/web -type d -exec chmod 0775 \{\} \; 
 OK   

[/root/netdata]# chown -R netdata:netdata /usr/local/netdata/netdata/var/lib/netdata 
 OK   

[/root/netdata]# chown -R netdata:netdata /usr/local/netdata/netdata/var/cache/netdata 
 OK   

[/root/netdata]# chown -R netdata:netdata /usr/local/netdata/netdata/var/log/netdata 
 OK   

[/root/netdata]# chmod 755 /usr/local/netdata/netdata/var/log/netdata 
 OK   

[/root/netdata]# chown netdata:root /usr/local/netdata/netdata/var/log/netdata 
 OK   

[/root/netdata]# chown -R root /usr/local/netdata/netdata/usr/libexec/netdata 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/libexec/netdata -type d -exec chmod 0755 \{\} \; 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/libexec/netdata -type f -exec chmod 0644 \{\} \; 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/libexec/netdata -type f -a -name \*.plugin -exec chmod 0755 \{\} \; 
 OK   

[/root/netdata]# find /usr/local/netdata/netdata/usr/libexec/netdata -type f -a -name \*.sh -exec chmod 0755 \{\} \; 
 OK   

[/root/netdata]# chown root:netdata /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/root/netdata]# chmod 0750 /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/root/netdata]# setcap cap_dac_read_search\,cap_sys_ptrace+ep /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/root/netdata]# chown root:netdata /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/freeipmi.plugin 
 OK   

[/root/netdata]# chmod 4750 /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/freeipmi.plugin 
 OK   

[/root/netdata]# chown root:netdata /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/root/netdata]# chmod 4750 /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/root/netdata]# chown root /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/cgroup-network-helper.sh 
 OK   

[/root/netdata]# chmod 0550 /usr/local/netdata/netdata/usr/libexec/netdata/plugins.d/cgroup-network-helper.sh 
 OK   

[/root/netdata]# chmod a+rX /usr/local/netdata/netdata/usr/libexec 
 OK   

[/root/netdata]# chmod a+rX /usr/local/netdata/netdata/usr/share/netdata 
 OK   

 --- Install netdata at system init --- 
file '/etc/systemd/system/netdata.service' already exists.
 --- Start netdata --- 
[/root/netdata]# /usr/bin/systemctl stop netdata 
 OK   

[/root/netdata]# /usr/bin/systemctl restart netdata 
 OK   

OK. NetData Started!

 --- Check KSM (kernel memory deduper) --- 
 --- 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@local netdata]#

Send coins in Groestlcoin network with Groestlcoin Core (cli)

Here are the steps needed to make a secure transfer of your funds under linux distro of Ubuntu. To be able to transfer money securely without any 3rd party involved (no online wallet) just funds from your personal Groestlcoin wallet address on your computer to another Groestlcoin wallet address we need a running Groestlcoin node using Groestlcoin Core tool:

groestlcoin-cli

The cli tool for managing the Groestlcoin wallets.

STEP 1) Install and run an Groestlcoin node with groestlcoind

Here you can follow this tutorial – Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS.
The Groestlcoin node must be running and synced with the Groestlcoin network.

STEP 2) Check how many funds you have in your Groestlcoin wallet address

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "test": 0.00000000
}

So we have

myfunds account

with 527.36851543 Groestlcoin coins, an account could have multiple Groestlcoin addresses and a wallet could have multiple accounts (as you can see from the example above) , so we can check the amount of coins on each address associated with the account:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FabGnY2ovd3jnddgyjiltd456hdfjklFBs", 
      527.36851543, 
      "myfunds"
    ]
  ]
]

You can see there are 527.36851543 Groestlcoin coins in our account “myfunds” in the Groestlcoin wallet and the Groestlcoin address is FabGnY2ovd3jnddgyjiltd456hdfjklFBs

STEP 3) Unlock your wallet

The wallet is encrypted with a password, so before doing any transactions you must unlock the account for a given amount of time with:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli walletpassphrase "my_wallet_pass" 300

So your wallet will stay unlocked for 300 seconds, this is the purpose of the third parameter.

STEP 4) Send the amount you like to the Groestlcoin wallet address you like

BE CAREFUL the operation is irreversible, if you put wrong address or unknown or unexciting one, you’ll lose your Groestlcoin coins!!
We want to send 2 coins to “FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe”

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
3293d8f8acc2689ff54fe70a28da24cd313c324f1f335e80d22add08588d73d1

If you see the transaction ID, it means the you have executed the command successfully and you can check the status of the transaction.

STEP 5) Check the transaction status.

The status of your transaction could be checked in sites offering Groestlcoin block explorer sites like

https://groestlsight.groestlcoin.org/

Here is the screenshot of the status page:

main menu
Transaction details in https://groestlsight.groestlcoin.org/

You can see there are two addresses and a fee, which is just a “0.0000226GRS”, the transaction 2 GRS has (S), which means “Spent” and the 0.04326832 GRS (U), which means unspent, but it was needed to complete the transaction. So you spent 2.0000226 GRS to transfer 2.00 GRS.
And verify the other address has the coins:

srv@local:~/groestlcoin-core/bin$ 
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe", 
      2.00000000, 
      "mytestwallet"
    ]
  ]
]

Here is the whole output of the “/groestlcoin-cli” tool:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "test": 0.00000000
}
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli walletpassphrase "my_wallet_pass" 300
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
3293d8f8acc2689ff54fe70a28da24cd313c324f1f335e80d22add08588d73d1
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FabGnY2ovd3jnddgyjiltd456hdfjklFBs", 
      525.32522451, 
      "myfunds"
    ], 
    [
      "Fjqkflgitg459tdfgjjkrthurDFGFhghhj", 
      0.04326832
    ]
  ]
]
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 525.36849283,
  "test": 0.00000000
}

Also you might want to delete your shell history because of the saved password phrase!

Troubleshooting

If you get

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
error code: -13
error message:
Error: Please enter the wallet passphrase with walletpassphrase first.

You must unlock your account! If you did it but still the error persisted you probably have to increase the unlock time. Look STEP 2)

* All Groestlcoin addresses in this howto are changed for security reasons.

Backup and restore your Groestlcoin address wallet (cli)

In real world backups are lifesavers and in crypto world the backups are even more important! Backup everything about your crypto wallet and node install!
If you have followed our howtos (Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS and “Building from source a Groestlcoin node (cli only) under Ubuntu 16 LTS“) you would have the correct software for managing the Groestlcoin wallet and all the paths bellow will be accurate.

STEP 1) Backup of Groestlcoin wallet

If you want to backup up your Groestlcoin (addresses) wallet you need to find your

wallet.dat

file the place for it is in your

“home directory/.groestlcoin/wallet.dat”

So first stop the Groestlcoin Core program with one of the following command:

  • By sending kill signal:
    srv@local:~$ killall groestlcoind
    
  • OR in your screen or shell of the running program ctrl+c will stop it

After you wait for the Groestlcoin Core to exit you can check the logs in

~/.groestlcoin/debug.log

2018-04-12 01:00:36 UpdateTip: new best=0000000000026458ea4ffb8d781179393f9f339bf3504936d1a6eb05d1a6d433 height=2041250 version=0x20000000 log2_work=61.378625 tx=2730651 date='2018-04-12 01:00:16' progress=1.000000 cache=0.7MiB(2279tx)
2018-04-12 01:00:52 tor: Thread interrupt
2018-04-12 01:00:52 msghand thread exit
2018-04-12 01:00:52 addcon thread exit
2018-04-12 01:00:52 torcontrol thread exit
2018-04-12 01:00:52 opencon thread exit
2018-04-12 01:00:52 scheduler thread interrupt
2018-04-12 01:00:52 Shutdown: In progress...
2018-04-12 01:00:52 net thread exit
2018-04-12 01:00:52 Dumped mempool: 3e-06s to copy, 0.001741s to dump
2018-04-12 01:00:52 Shutdown: done

So now you can copy to a secure place your

“home directory/.groestlcoin/wallet.dat

In our real world example the path is “/home/ubuntu/.groestlcoin/wallet.dat”

srv@local:~$ cp /home/ubuntu/.groestlcoin/wallet.dat /home/ubuntu/backups/cryptos/groestlcoin-wallet.dat

STEP 2) Restore Groestlcoin wallet

To restore our wallet from a backup you also need the Groestlcoin wallet program (Groestlcoin Core – the Groestlcoin node) not to be running, so if it is started just follow the STEP 1) to stop it. Then override

“home directory/.groestlcoin/wallet.dat

with your backup file (the name of the file must be “wallet.dat”!!! It is important because your backup file could have any name). So in our real world example we override our /home/ubuntu/.groestlcoin/wallet.dat with our backup:

srv@local:~$ cp /home/ubuntu/backups/cryptos/groestlcoin-wallet.dat /home/ubuntu/.groestlcoin/wallet.dat

And then start your Groestlcoin wallet program with option

-rescan

this option is required when you first start the Groestlcoin Core with your backup wallet to “Rescan the block chain for missing wallet transactions on startup”, if you do not start the program with “-rescan” you could have strange numbers for your funds when checking with “groestlcoin-cli”

srv@local:~$ cd ~/groestlcoin-core/bin
srv@local:~/groestlcoin-core/bin$ ./groestlcoind -rescan &> groestlcoind.log

You could check debug.log and you’ll see the transactions for your wallet

2018-04-12 01:21:07 Using obfuscation key for /home/ubuntu/.groestlcoin/blocks/index: 0000000000000000
2018-04-12 01:21:07 Opening LevelDB in /home/ubuntu/.groestlcoin/chainstate
2018-04-12 01:21:07 Opened LevelDB successfully
2018-04-12 01:21:07 Using obfuscation key for /home/ubuntu/.groestlcoin/chainstate: 0000000000000000
2018-04-12 01:21:26 LoadBlockIndexDB: last block file = 8
2018-04-12 01:21:26 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=75749, size=48230812, heights=1965243...2041250, time=2018-02-15...2018-04-12)
2018-04-12 01:21:26 Checking all blk files are present...
2018-04-12 01:21:26 LoadBlockIndexDB: transaction index disabled
2018-04-12 01:21:27 LoadBlockIndexDB: hashBestChain=0000000000026458ea4ffb8d781179393f9f339bf3504936d1a6eb05d1a6d433 height=2041250 date=2018-04-12 01:00:16 progress=0.999999
2018-04-12 01:21:27 init message: Rewinding blocks...
2018-04-12 01:21:34 init message: Verifying blocks...
2018-04-12 01:21:34 Verifying last 6 blocks at level 3
2018-04-12 01:21:34 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2018-04-12 01:21:34 No coin database inconsistencies in last 7 blocks (16 transactions)
2018-04-12 01:21:34  block index           26840ms
2018-04-12 01:21:34 init message: Loading wallet...
2018-04-12 01:21:34 nFileVersion = 2130300
2018-04-12 01:21:34 Keys: 0 plaintext, 205 encrypted, 205 w/ metadata, 205 total
2018-04-12 01:21:34  wallet                   11ms
2018-04-12 01:21:34 init message: Rescanning...
2018-04-12 01:21:34 Rescanning last 2041250 blocks (from block 0)...
2018-04-12 01:21:34 AddToWallet c5ed5ff668503412eed4568c3b226523e2ff6db2a1b3740f0aea5250a3c36e7b  
2018-04-12 01:21:34 AddToWallet fc99017780dbafaf5723196351d4adaaee9991c35391ecb013ed74bbb57a44a5  
2018-04-12 01:21:34 AddToWallet 52f883907385dd8205273ebdc987e88ed71f0e894b57df1a6a2f2c9fcb546922  
2018-04-12 01:21:34 AddToWallet a8b84a2d0b1114c4f2d710a45e0e13dfab547512b1b775a9617fa41809b75926  
2018-04-12 01:21:34 AddToWallet 0d4f1d8e9f6c42b4dbaaf33fe4fb33efc5f646df8724f1e66ab54ccbedbb84f1  
2018-04-12 01:21:34 AddToWallet 1a2984f011a6ff5d44c549b0f6da44b3a1654e2ccbb9f897f5106f88ed931498  
.....
.....
2018-04-12 01:21:46  rescan                12622ms
2018-04-12 01:21:46 setKeyPool.size() = 99
2018-04-12 01:21:46 mapWallet.size() = 415
2018-04-12 01:21:46 mapAddressBook.size() = 4
2018-04-12 01:21:46 mapBlockIndex.size() = 2041278
2018-04-12 01:21:46 nBestHeight = 2041250
2018-04-12 01:21:46 init message: Loading addresses...
2018-04-12 01:21:46 Imported mempool transactions from disk: 1 successes, 0 failed, 0 expired
2018-04-12 01:21:46 torcontrol thread start
2018-04-12 01:21:46 Loaded 2994 addresses from peers.dat  40ms
2018-04-12 01:21:46 init message: Loading banlist...
2018-04-12 01:21:46 init message: Starting network threads...
2018-04-12 01:21:46 net thread start
2018-04-12 01:21:46 addcon thread start
2018-04-12 01:21:46 init message: Done loading
2018-04-12 01:21:46 dnsseed thread start
2018-04-12 01:21:46 opencon thread start
2018-04-12 01:21:46 msghand thread start
2018-04-12 01:21:47 receive version message: /Groestlcoin:2.13.3/: version 70015, blocks=2041268, us=18.220.186.120:42996, peer=0

Now if you check your balances they must be properly reported (correct numbers of coins):

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "tests": 0.00000000
}

Reinstall live CentOS 7 server using ssh and change disk configuration of root filesystem to RAID1

Not all dedicated server providers have good web management panel or offer a remote management console (like IPMI/KVM, iDRAC, iLO and so on)! If you used multiple server providers you would experience the case when you received a server installed with the linux distro by your choice, but with no options to configure the hard drives setup. And in most cases when there is no choice of hard drives and partition configuration you end up with a dedicated server installed with root filesystem on the whole first device without any redundancy or performance. So it will be nice to reinstall the server without using remote management module (because it is missing, for example).
Here are the steps to reinstall a CentOS7 server with two hard drives, the initial installation uses the almost whole first device for root filesystem. At the end we will have the server with different hard drive configuration – root filesystem will be on a RAID1 device for redundancy (and read performance) and will have a dedicated space for it, there will be a bigger device for storage purposes.

Here are the steps to reinstall live CentOS 7 server using ssh and change disk configuration of root filesystem to RAID1:

STEP 1) Show the current configuration

[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       461G  1.5G  437G   1% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda1       485M  136M  324M  30% /boot
/dev/sda5       3.9G   17M  3.7G   1% /tmp
tmpfs           3.2G     0  3.2G   0% /run/user/0
[root@localhost ~]# ls -al /dev/sd?
brw-rw---- 1 root disk 8,  0 Apr  4 11:06 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr  4 11:06 /dev/sdb
brw-rw---- 1 root disk 8, 32 Apr  4 11:06 /dev/sdc
brw-rw---- 1 root disk 8, 48 Apr  4 11:06 /dev/sdd
[root@localhost ~]# 

Root filesystem uses /dev/sda3, /tmp uses /dev/sda5 and the boot is on /dev/sda2. So the whole install uses only /dev/sda device and the other 3 are spare. We are going to use the second hard drive /dev/sdb to create a software RAID1 for our root filesystem.

STEP 2) Prepare the second drive for first reboot

Because /dev/sda is the first device the server will always boot from the grub installed in /dev/sda, so if we want to change the partition layout we must umount all partitions of /dev/sda, which is not a easy job. So because we have a second disk, we can change the partition layout of the second disk /dev/sdb, then copy the root filesystem from the first disk to the second and instruct the the grub to boot the root filesystem from the second disk. And more, at first we’ll use the partition for the swap of the second disk for root filesystem and then we’ll create the RAID1 device. Here we make initial setup of the second disk /dev/sdb:

[root@localhost ~]# parted /dev/sdb --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End  Size  Type  File system  Flags

[root@localhost ~]# parted /dev/sdb --script mklabel gpt
[root@localhost ~]# parted /dev/sdb --script mkpart primary 0% 4M
[root@localhost ~]# parted /dev/sdb --script mkpart primary 4M 16G
[root@localhost ~]# parted /dev/sdb --script mkpart primary 16G 50G
[root@localhost ~]# parted /dev/sdb --script mkpart primary 50G 100%
[root@localhost ~]# parted /dev/sdb --script set 1 bios_grub on
[root@localhost ~]# parted /dev/sdb --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB               primary  bios_grub
 2      4194kB  16.0GB  16.0GB               primary
 3      16.0GB  50.0GB  34.0GB               primary
 4      50.0GB  512GB   462GB                primary

[root@localhost ~]# mkfs.ext4 /dev/sdb2
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
977280 inodes, 3905280 blocks
195264 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2151677952
120 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

[root@localhost ~]#

STEP 3) Copy all the files from the current filesystem to the newly created one using rsync

[root@localhost ~]# mkdir /mnt/centos
[root@localhost ~]# mount /dev/sdb2 /mnt/centos/
[root@localhost ~]# rsync --delete --partial --verbose --progress --stats --recursive --times --perms --links --owner --group --hard-links --devices --exclude=/mnt --exclude=/proc --exclude=/sys / /mnt/centos/
...
...
Number of files: 81519
Number of files transferred: 60909
Total file size: 1483871491 bytes
Total transferred file size: 1460598076 bytes
Literal data: 1460598076 bytes
Matched data: 0 bytes
File list size: 1691669
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 1465598884
Total bytes received: 1734750

sent 1465598884 bytes  received 1734750 bytes  79315331.57 bytes/sec
total size is 1483871491  speedup is 1.01
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       461G  1.5G  437G   1% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda1       485M  136M  324M  30% /boot
/dev/sda5       3.9G   17M  3.7G   1% /tmp
tmpfs           3.2G     0  3.2G   0% /run/user/0
/dev/sdb2        15G  1.6G   13G  12% /mnt/centos
[root@localhost ~]# 

STEP 4) Prepare the new root

  1. umount /boot, because we want to use it for the first reboot but with changed grub configuration, generated for the new root filesystem
    [root@localhost ~]# umount /boot
    [root@localhost ~]# mount /dev/sda1 /mnt/centos/boot
    [root@localhost ~]# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda2       461G  1.5G  437G   1% /
    devtmpfs         16G     0   16G   0% /dev
    tmpfs            16G     0   16G   0% /dev/shm
    tmpfs            16G  8.6M   16G   1% /run
    tmpfs            16G     0   16G   0% /sys/fs/cgroup
    /dev/sda5       3.9G   17M  3.7G   1% /tmp
    tmpfs           3.2G     0  3.2G   0% /run/user/0
    /dev/sdb2        15G  1.6G   13G  12% /mnt/centos
    /dev/sda1       485M  136M  324M  30% /mnt/centos/boot
    
  2. chroot in the new root and replace the old GIUD with the new one for the root filesystem in /etc/fstab
    [root@localhost ~]# mkdir /mnt/centos/proc
    [root@localhost ~]# mkdir /mnt/centos/sys
    [root@localhost ~]# mount -o bind /proc /mnt/centos/proc
    [root@localhost ~]# mount -o bind /dev /mnt/centos/dev
    [root@localhost ~]# mount -o bind /sys /mnt/centos/sys
    [root@localhost ~]# chroot /mnt/centos/
    [root@localhost /]# blkid |grep sdb2
    /dev/sdb2: UUID="b829d6f1-ca0e-4939-8764-c329aee0a5b2" TYPE="ext4" PARTLABEL="primary" PARTUUID="b150c7cc-0557-4de9-bbc9-05ae54b9cec5" 
    [root@localhost /]# blkid |grep sda2
    /dev/sda2: UUID="b43edab7-8b2f-4047-9ca2-0f3e3ea24e0e" TYPE="ext4" 
    [root@localhost /]# sed -i "s/b43edab7-8b2f-4047-9ca2-0f3e3ea24e0e/b829d6f1-ca0e-4939-8764-c329aee0a5b2/g" /etc/fstab
    
  3. comment out the /tmp in /etc/fstab (and any other directory, which uses /dev/sda, remember after the reboot we will change the partition layout of /dev/sda, so we need not to use any partition from it)
    [root@localhost /]# cat /etc/fstab 
    
    #
    # /etc/fstab
    # Created by anaconda on Wed Apr  4 11:00:01 2018
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=b829d6f1-ca0e-4939-8764-c329aee0a5b2 /                       ext4    defaults        1 1
    UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2 /boot                   ext2    defaults        1 2
    UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c /tmp                    ext4    noexec,nosuid,nodev        1 2
    UUID=20c3afea-87ae-4716-8a65-323bd9e6eae6 swap                    swap    defaults        0 0
    [root@localhost /]# sed -i "s/UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c/#UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c/g" /etc/fstab 
    [root@localhost /]# cat /etc/fstab 
    
    #
    # /etc/fstab
    # Created by anaconda on Wed Apr  4 11:00:01 2018
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=b829d6f1-ca0e-4939-8764-c329aee0a5b2 /                       ext4    defaults        1 1
    UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2 /boot                   ext2    defaults        1 2
    #UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c /tmp                    ext4    noexec,nosuid,nodev        1 2
    UUID=20c3afea-87ae-4716-8a65-323bd9e6eae6 swap                    swap    defaults        0 0
    [root@localhost /]#
    
  4. Generate the new grub2 configuration (because you are in the chrooted new root and there you change the /etc/fstab, grub will use the new GUID for the filesystem)
    [root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-3.10.0-693.21.1.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-693.21.1.el7.x86_64.img
    Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-3003b47aedb040f6baaf6fce8c6b8386
    Found initrd image: /boot/initramfs-0-rescue-3003b47aedb040f6baaf6fce8c6b8386.img
    done
    [root@localhost /]# exit
    exit
    [root@localhost ~]# umount /mnt/centos/boot
    [root@localhost ~]# umount /mnt/centos/proc
    [root@localhost ~]# umount /mnt/centos/sys
    [root@localhost ~]# umount /mnt/centos/dev
    [root@localhost ~]# umount /mnt/centos
    [root@localhost ~]# reboot
    Connection to srv closed by remote host.
    Connection to srv closed.
    

STEP 5) Prepare the two disks /dev/sda and /dev/sdb for RAID1 device

Unmount all devices of /dev/sda (such as swap, /boot). Then make a new partition layout for /dev/sda and tune the layout of /dev/sdb (we need the flag raid to be “on”)

[root@srv0 ~]# ssh srv
root@srv's password: 
Last login: Wed Apr  4 11:28:57 2018 from 192.168.0.110
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb2        15G  1.6G   13G  12% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda1       485M  136M  324M  30% /boot
tmpfs           3.2G     0  3.2G   0% /run/user/0
[root@localhost ~]# umount /boot
[root@localhost ~]# swapoff -a
[root@localhost ~]# ls -al /boot/
total 128020
dr-xr-xr-x  6 root root     4096 Apr  4 11:07 .
dr-xr-xr-x 17 root root     4096 Apr  4 12:25 ..
-rw-r--r--  1 root root   140971 Mar  7 19:16 config-3.10.0-693.21.1.el7.x86_64
-rw-r--r--  1 root root   140894 Aug 22  2017 config-3.10.0-693.el7.x86_64
drwxr-xr-x  3 root root     4096 Apr  4 11:00 efi
drwxr-xr-x  2 root root     4096 Apr  4 11:00 grub
drwx------  5 root root     4096 Apr  4 11:04 grub2
-rw-------  1 root root 53705597 Apr  4 11:02 initramfs-0-rescue-3003b47aedb040f6baaf6fce8c6b8386.img
-rw-------  1 root root 17881515 Apr  4 11:04 initramfs-3.10.0-693.21.1.el7.x86_64.img
-rw-------  1 root root 15956344 Apr  4 11:07 initramfs-3.10.0-693.21.1.el7.x86_64kdump.img
-rw-------  1 root root 17871068 Apr  4 11:04 initramfs-3.10.0-693.el7.x86_64.img
-rw-r--r--  1 root root   610968 Apr  4 11:01 initrd-plymouth.img
drwx------  2 root root     4096 Apr  4 11:00 lost+found
-rw-r--r--  1 root root   293361 Mar  7 19:18 symvers-3.10.0-693.21.1.el7.x86_64.gz
-rw-r--r--  1 root root   293027 Aug 22  2017 symvers-3.10.0-693.el7.x86_64.gz
-rw-------  1 root root  3237433 Mar  7 19:16 System.map-3.10.0-693.21.1.el7.x86_64
-rw-------  1 root root  3228420 Aug 22  2017 System.map-3.10.0-693.el7.x86_64
-rwxr-xr-x  1 root root  5877760 Apr  4 11:02 vmlinuz-0-rescue-3003b47aedb040f6baaf6fce8c6b8386
-rwxr-xr-x  1 root root  5917504 Mar  7 19:16 vmlinuz-3.10.0-693.21.1.el7.x86_64
-rw-r--r--  1 root root      171 Mar  7 19:16 .vmlinuz-3.10.0-693.21.1.el7.x86_64.hmac
-rwxr-xr-x  1 root root  5877760 Aug 22  2017 vmlinuz-3.10.0-693.el7.x86_64
-rw-r--r--  1 root root      166 Aug 22  2017 .vmlinuz-3.10.0-693.el7.x86_64.hmac
[root@localhost ~]# parted /dev/sda --script mklabel gpt
[root@localhost ~]# parted /dev/sda --script mkpart primary 0% 4M
[root@localhost ~]# parted /dev/sda --script mkpart primary 4M 16G
[root@localhost ~]# parted /dev/sda --script mkpart primary 16G 50G
[root@localhost ~]# parted /dev/sda --script mkpart primary 50G 100%
[root@localhost ~]# parted /dev/sda --script set 1 bios_grub on
[root@localhost ~]# parted /dev/sda --script set 2 raid on
[root@localhost ~]# parted /dev/sda --script set 3 raid on
[root@localhost ~]# parted /dev/sda --script set 4 raid on
[root@localhost ~]# parted /dev/sda --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB  ext2         primary  bios_grub
 2      4194kB  16.0GB  16.0GB               primary  raid
 3      16.0GB  50.0GB  34.0GB               primary  raid
 4      50.0GB  512GB   462GB                primary  raid

[root@localhost ~]# parted /dev/sdb --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB               primary  bios_grub
 2      4194kB  16.0GB  16.0GB  ext4         primary
 3      16.0GB  50.0GB  34.0GB               primary
 4      50.0GB  512GB   462GB                primary

[root@localhost ~]# parted /dev/sdb --script set 3 raid on
[root@localhost ~]# parted /dev/sdb --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB               primary  bios_grub
 2      4194kB  16.0GB  16.0GB  ext4         primary
 3      16.0GB  50.0GB  34.0GB               primary  raid
 4      50.0GB  512GB   462GB                primary

STEP 6) Create the RAID1 device and format the filesystem, then copy all files from the root file system to the RAID1 device /dev/md1 (mounted again in /mnt/centos)

[root@localhost ~]# mdadm --create --verbose --metadata=1.2 /dev/md1 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3
mdadm: size set to 33186816K
mdadm: array /dev/md1 started.
[root@localhost ~]# cat /proc/mdstat
Personalities : [raid1] 
md1 : active raid1 sdb3[1] sda3[0]
      33186816 blocks super 1.2 [2/2] [UU]
      [==>..................]  resync = 10.8% (3602048/33186816) finish=2.4min speed=200113K/sec
      
unused devices: <none>
[root@localhost ~]# mkfs.ext4 /dev/md1
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
977280 inodes, 3905280 blocks
195264 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2151677952
120 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   
[root@localhost ~]# mount /dev/md1 /mnt/centos/
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb2        15G  1.6G   13G  12% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
tmpfs           3.2G     0  3.2G   0% /run/user/0
/dev/md1         32G   49M   30G   1% /mnt/centos
[root@localhost ~]# rsync --delete --partial --verbose --progress --stats --recursive --times --perms --links --owner --group --hard-links --devices --exclude=/mnt --exclude=/proc --exclude=/sys / /mnt/centos/
sending incremental file list
./
.autorelabel
           0 100%    0.00kB/s    0:00:00 (xfer#1, to-check=1022/1024)
.readahead
      237849 100%   39.12MB/s    0:00:00 (xfer#2, to-check=1021/1024)
bin -> usr/bin
lib -> usr/lib
lib64 -> usr/lib64
sbin -> usr/sbin
....
....
Number of files: 81532
Number of files transferred: 60917
Total file size: 1484146321 bytes
Total transferred file size: 1460872926 bytes
Literal data: 1460872926 bytes
Matched data: 0 bytes
File list size: 1693018
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 1465875457
Total bytes received: 1734920

sent 1465875457 bytes  received 1734920 bytes  83863450.11 bytes/sec
total size is 1484146321  speedup is 1.01
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb2        15G  1.6G   13G  12% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
tmpfs           3.2G     0  3.2G   0% /run/user/0
/dev/md1         32G  1.6G   28G   6% /mnt/centos

STEP 7) Prepare the new root in the RAID1 device

chroot in the new place (/mnt/centos) and change the GUID of the root filesystem in /etc/fstab, comment the “/boot”, we will use /boot on our root filesystem (we can do it, because we have a separate boot grub partition, the first one, so our /boot could reside on a RAID device). Also add the configuration of the UUID array in /etc/default/grub to generate a proper grub2 configuration for the next boot.

[root@localhost ~]# mkdir -p /mnt/centos/proc
[root@localhost ~]# mkdir -p /mnt/centos/sys
[root@localhost ~]# mount -o bind /proc /mnt/centos/proc
[root@localhost ~]# mount -o bind /dev /mnt/centos/dev
[root@localhost ~]# mount -o bind /sys /mnt/centos/sys
[root@localhost ~]# chroot /mnt/centos/
[root@localhost /]# blkid |grep sdb2
/dev/sdb2: UUID="b829d6f1-ca0e-4939-8764-c329aee0a5b2" TYPE="ext4" PARTLABEL="primary" PARTUUID="b150c7cc-0557-4de9-bbc9-05ae54b9cec5" 
[root@localhost /]# blkid |grep md1
/dev/md1: UUID="38407879-7399-492c-bad6-d8a3ef0297d4" TYPE="ext4" 
[root@localhost /]# sed -i "s/b829d6f1-ca0e-4939-8764-c329aee0a5b2/38407879-7399-492c-bad6-d8a3ef0297d4/g" /etc/fstab 
[root@localhost /]# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Wed Apr  4 11:00:01 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=38407879-7399-492c-bad6-d8a3ef0297d4 /                       ext4    defaults        1 1
UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2 /boot                   ext2    defaults        1 2
#UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c /tmp                    ext4    noexec,nosuid,nodev        1 2
UUID=20c3afea-87ae-4716-8a65-323bd9e6eae6 swap                    swap    defaults        0 0
[root@localhost /]# sed -i "s/UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2/#UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2/g" /etc/fstab 
[root@localhost /]# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Wed Apr  4 11:00:01 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=38407879-7399-492c-bad6-d8a3ef0297d4 /                       ext4    defaults        1 1
#UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2 /boot                   ext2    defaults        1 2
#UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c /tmp                    ext4    noexec,nosuid,nodev        1 2
UUID=20c3afea-87ae-4716-8a65-323bd9e6eae6 swap                    swap    defaults        0 0
[root@localhost /]# mdadm -E /dev/sda3
/dev/sda3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : e59b6269:7af24168:193c51d0:65b33fd9
           Name : localhost.localdomain:1  (local to host localhost.localdomain)
  Creation Time : Wed Apr  4 12:38:58 2018
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 66373632 (31.65 GiB 33.98 GB)
     Array Size : 33186816 (31.65 GiB 33.98 GB)
    Data Offset : 32768 sectors
   Super Offset : 8 sectors
   Unused Space : before=32616 sectors, after=0 sectors
          State : active
    Device UUID : 8ebd8e2d:aa01d194:55a51280:e4192e08

    Update Time : Wed Apr  4 12:44:00 2018
  Bad Block Log : 512 entries available at offset 136 sectors
       Checksum : 3e7cfbb6 - correct
         Events : 18


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
[root@localhost /]# nano /etc/default/grub
[root@localhost /]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_CMDLINE_LINUX="rd.md.uuid=e59b6269:7af24168:193c51d0:65b33fd9 crashkernel=auto console=ttyS0,115200"
GRUB_DISABLE_RECOVERY="true"
[root@localhost /]# mdadm --detail --scan >> /etc/mdadm.conf
[root@localhost /]# cat /etc/mdadm.conf
ARRAY /dev/md1 metadata=1.2 name=localhost.localdomain:1 UUID=e59b6269:7af24168:193c51d0:65b33fd9
[root@localhost /]# dracut --regenerate-all --force
[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-693.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-3003b47aedb040f6baaf6fce8c6b8386
Found initrd image: /boot/initramfs-0-rescue-3003b47aedb040f6baaf6fce8c6b8386.img
done
[root@localhost /]# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
[root@localhost /]# grub2-install /dev/sdb
Installing for i386-pc platform.
Installation finished. No error reported.
[root@localhost /]# exit
exit
[root@localhost ~]# umount /mnt/centos/proc
[root@localhost ~]# umount /mnt/centos/sys
[root@localhost ~]# umount /mnt/centos/dev
[root@localhost ~]# umount /mnt/centos
[root@localhost ~]# reboot
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
Connection to srv closed by remote host.
Connection to srv closed.

STEP 8) Create one more RAID1 device for the swap

Create a new RAID1 for the swap partition and configure the /dev/sdb with parted. Add the new RAID1 device in /dev/default/grub and generate the grub2 configuration file.

[root@srv0 ~]# ssh srv
root@srv's password: 
Last login: Wed Apr  4 11:38:19 2018 from 192.168.0.110

[root@localhost ~]# parted /dev/sda --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB               primary  bios_grub
 2      4194kB  16.0GB  16.0GB               primary  raid
 3      16.0GB  50.0GB  34.0GB               primary  raid
 4      50.0GB  512GB   462GB                primary  raid

[root@localhost ~]# parted /dev/sdb --script print
Model: ATA SanDisk SD6SB2M5 (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  4194kB  3146kB               primary  bios_grub
 2      4194kB  16.0GB  16.0GB  ext4         primary
 3      16.0GB  50.0GB  34.0GB               primary  raid
 4      50.0GB  512GB   462GB                primary

[root@localhost ~]# parted /dev/sdb --script set 2 raid on
[root@localhost ~]# parted /dev/sdb --script set 4 raid on
[root@localhost ~]# mdadm --create --verbose --metadata=1.2 /dev/md0 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
mdadm: /dev/sdb2 appears to contain an ext2fs file system
       size=15621120K  mtime=Wed Apr  4 12:24:37 2018
mdadm: size set to 15612928K
Continue creating array? yes
mdadm: array /dev/md0 started.
[root@localhost ~]# cat /proc/mdstat 
Personalities : [raid1] 
md0 : active raid1 sdb2[1] sda2[0]
      15612928 blocks super 1.2 [2/2] [UU]
      [====>................]  resync = 21.5% (3371072/15612928) finish=0.9min speed=210692K/sec
      
md1 : active raid1 sdb3[1] sda3[0]
      33186816 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
[root@localhost ~]# cat /proc/mdstat 
Personalities : [raid1] 
md0 : active raid1 sdb2[1] sda2[0]
      15612928 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sdb3[1] sda3[0]
      33186816 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
[root@localhost ~]# mkswap /dev/md0
Setting up swapspace version 1, size = 15612924 KiB
no label, UUID=0916f8c5-079d-4780-af38-89411fa7ec24
[root@localhost ~]# cat /etc/fstab |grep swap
UUID=20c3afea-87ae-4716-8a65-323bd9e6eae6 swap                    swap    defaults        0 0
[root@localhost ~]# sed -i "s/20c3afea-87ae-4716-8a65-323bd9e6eae6/0916f8c5-079d-4780-af38-89411fa7ec24/g" /etc/fstab
[root@localhost ~]# cat /proc/mdstat 
Personalities : [raid1] 
md0 : active raid1 sdb2[1] sda2[0]
      15612928 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sdb3[1] sda3[0]
      33186816 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
[root@localhost ~]# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Wed Apr  4 11:00:01 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=38407879-7399-492c-bad6-d8a3ef0297d4 /                       ext4    defaults        1 1
#UUID=9b98bd49-34bd-43a3-89b9-32c36df722b2 /boot                   ext2    defaults        1 2
#UUID=7f44f0b8-cbbe-4e70-a763-112675cf9a2c /tmp                    ext4    noexec,nosuid,nodev        1 2
UUID=0916f8c5-079d-4780-af38-89411fa7ec24 swap                    swap    defaults        0 0
[root@localhost ~]# mdadm -E /dev/sda2
/dev/sda2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 2e122130:2eefd9ec:5ad5b846:6bd10d6b
           Name : localhost.localdomain:0  (local to host localhost.localdomain)
  Creation Time : Wed Apr  4 13:11:03 2018
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 31225856 (14.89 GiB 15.99 GB)
     Array Size : 15612928 (14.89 GiB 15.99 GB)
    Data Offset : 16384 sectors
   Super Offset : 8 sectors
   Unused Space : before=16232 sectors, after=0 sectors
          State : clean
    Device UUID : 7ef8d502:96208fd4:bbed302a:37063c83

    Update Time : Wed Apr  4 13:12:42 2018
  Bad Block Log : 512 entries available at offset 136 sectors
       Checksum : c808e2cc - correct
         Events : 17


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
[root@localhost ~]# nano /etc/default/grub 
[root@localhost ~]# cat /etc/default/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_CMDLINE_LINUX="rd.md.uuid=e59b6269:7af24168:193c51d0:65b33fd9 rd.md.uuid=2e122130:2eefd9ec:5ad5b846:6bd10d6b crashkernel=auto console=ttyS0,115200"
GRUB_DISABLE_RECOVERY="true"

[root@localhost ~]# mdadm --detail --scan > /etc/mdadm.conf
[root@localhost ~]# cat /etc/mdadm.conf 
ARRAY /dev/md1 metadata=1.2 name=localhost.localdomain:1 UUID=e59b6269:7af24168:193c51d0:65b33fd9
ARRAY /dev/md0 metadata=1.2 name=localhost.localdomain:0 UUID=2e122130:2eefd9ec:5ad5b846:6bd10d6b
[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-693.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-3003b47aedb040f6baaf6fce8c6b8386
Found initrd image: /boot/initramfs-0-rescue-3003b47aedb040f6baaf6fce8c6b8386.img
done
[root@localhost ~]# reboot
Connection to srv closed by remote host.
Connection to srv closed.
[root@srv0 ~]# 

So we changed our root filesystem device configuration from a single partition to a RAID1 device for redundancy and better performance!

[root@srv0 ~]# ssh srv
root@srv's password: 
Last login: Wed Apr  4 13:35:55 2018 from 192.168.0.110
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md1         32G  1.6G   28G   6% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.5M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
tmpfs           3.2G     0  3.2G   0% /run/user/0
[root@localhost ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:            31G        273M         30G        8.5M        199M         30G
Swap:           14G          0B         14G
[root@localhost ~]# cat /proc/mdstat 
Personalities : [raid1] 
md0 : active raid1 sda2[0] sdb2[1]
      15612928 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sda3[0] sdb3[1]
      33186816 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
[root@localhost ~]#

STEP 9) Create the storage device

The storage device is a RAID5 setup with 4 hard disks available in the current machine (but it is the same with two devices except the RAID is RAID1). The idea is to separate the storage from the root filesystem that’s why we have separate two RAID devices.

[root@localhost ~]# parted /dev/sdc --script mklabel gpt
[root@localhost ~]# parted /dev/sdc --script mkpart primary 0% 4M
[root@localhost ~]# parted /dev/sdc --script mkpart primary 4M 16G
[root@localhost ~]# parted /dev/sdc --script mkpart primary 16G 50G
[root@localhost ~]# parted /dev/sdc --script mkpart primary 50G 100%
[root@localhost ~]# parted /dev/sdc --script set 1 bios_grub on
[root@localhost ~]# parted /dev/sdc --script set 2 raid on
[root@localhost ~]# parted /dev/sdc --script set 3 raid on
[root@localhost ~]# parted /dev/sdc --script set 4 raid on
[root@localhost ~]# parted /dev/sdd --script mklabel gpt
[root@localhost ~]# parted /dev/sdd --script mkpart primary 0% 4M
[root@localhost ~]# parted /dev/sdd --script mkpart primary 4M 16G
[root@localhost ~]# parted /dev/sdd --script mkpart primary 16G 50G
[root@localhost ~]# parted /dev/sdd --script mkpart primary 50G 100%
[root@localhost ~]# parted /dev/sdd --script set 1 bios_grub on
[root@localhost ~]# parted /dev/sdd --script set 2 raid on
[root@localhost ~]# parted /dev/sdd --script set 3 raid on
[root@localhost ~]# parted /dev/sdd --script set 4 raid on
[root@localhost ~]# mdadm --create --verbose /dev/md2 --level=5 --raid-devices=4 --chunk=1024 /dev/sda4 /dev/sdb4 /dev/sdc4 /dev/sdd4
mdadm: layout defaults to left-symmetric
mdadm: layout defaults to left-symmetric
mdadm: size set to 451147776K
mdadm: automatically enabling write-intent bitmap on large array
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md2 started.
[root@localhost ~]# cat /proc/mdstat 
Personalities : [raid1] [raid6] [raid5] [raid4] 
md2 : active raid5 sdd4[4] sdc4[2] sdb4[1] sda4[0]
      1353443328 blocks super 1.2 level 5, 1024k chunk, algorithm 2 [4/3] [UUU_]
      [>....................]  recovery =  0.9% (4316984/451147776) finish=36.2min speed=205570K/sec
      bitmap: 0/4 pages [0KB], 65536KB chunk

md0 : active raid1 sda2[0] sdb2[1]
      15612928 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sda3[0] sdb3[1]
      33186816 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
[root@localhost ~]# mkfs.ext4 /dev/md2
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=256 blocks, Stripe width=768 blocks
84590592 inodes, 338360832 blocks
16918041 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2487222272
10326 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000, 214990848

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done       

[root@localhost ~]# blkid | grep md2
/dev/md2: UUID="0ba39ec9-a1fc-4593-a704-6171cb2a3403" TYPE="ext4" 
[root@localhost ~]# nano /etc/fstab 
[root@localhost ~]# mkdir -p /mnt/storage
[root@localhost ~]# mount /mnt/storage
[root@localhost ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md1         32G  1.6G   28G   6% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.6M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
tmpfs           3.2G     0  3.2G   0% /run/user/0
/dev/md2        1.3T   77M  1.2T   1% /mnt/storage

QEMU full virtualization – CPU emulations (enable/disable CPU flags/instruction sets) of QEMU 2.0.0

After the two QEMU full virtualization howtos

You can use QEMU with a nearly native full virtualization. Here are some important tips for the guest CPU to consider when using QEMU directly (without any virtualization manager like virt-manager, libvirt and so on).

TIP 1)Choose your host CPU emulation

You can see what options are available for host emulation with:

srv@local ~$ qemu-system-x86_64 -cpu help

x86           qemu64  QEMU Virtual CPU version 2.0.0                  
x86           phenom  AMD Phenom(tm) 9550 Quad-Core Processor         
x86         core2duo  Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz 
x86            kvm64  Common KVM processor                            
x86           qemu32  QEMU Virtual CPU version 2.0.0                  
x86            kvm32  Common 32-bit KVM processor                     
x86          coreduo  Genuine Intel(R) CPU           T2600  @ 2.16GHz 
x86              486                                                  
x86          pentium                                                  
x86         pentium2                                                  
x86         pentium3                                                  
x86           athlon  QEMU Virtual CPU version 2.0.0                  
x86             n270  Intel(R) Atom(TM) CPU N270   @ 1.60GHz          
x86           Conroe  Intel Celeron_4x0 (Conroe/Merom Class Core 2)   
x86           Penryn  Intel Core 2 Duo P9xxx (Penryn Class Core 2)    
x86          Nehalem  Intel Core i7 9xx (Nehalem Class Core i7)       
x86         Westmere  Westmere E56xx/L56xx/X56xx (Nehalem-C)          
x86      SandyBridge  Intel Xeon E312xx (Sandy Bridge)                
x86          Haswell  Intel Core Processor (Haswell)                  
x86       Opteron_G1  AMD Opteron 240 (Gen 1 Class Opteron)           
x86       Opteron_G2  AMD Opteron 22xx (Gen 2 Class Opteron)          
x86       Opteron_G3  AMD Opteron 23xx (Gen 3 Class Opteron)          
x86       Opteron_G4  AMD Opteron 62xx class CPU                      
x86       Opteron_G5  AMD Opteron 63xx class CPU                      
x86             host  KVM processor with all supported host features (only available in KVM mode)

Recognized CPUID flags:
  pbe ia64 tm ht ss sse2 sse fxsr mmx acpi ds clflush pn pse36 pat cmov mca pge mtrr sep apic cx8 mce pae msr tsc pse de vme fpu
  hypervisor rdrand f16c avx osxsave xsave aes tsc-deadline popcnt movbe x2apic sse4.2|sse4_2 sse4.1|sse4_1 dca pcid pdcm xtpr cx16 fma cid ssse3 tm2 est smx vmx ds_cpl monitor dtes64 pclmulqdq|pclmuldq pni|sse3
  smap adx rdseed rtm invpcid erms bmi2 smep avx2 hle bmi1 fsgsbase
  3dnow 3dnowext lm|i64 rdtscp pdpe1gb fxsr_opt|ffxsr mmxext nx|xd syscall
  perfctr_nb perfctr_core topoext tbm nodeid_msr tce fma4 lwp wdt skinit xop ibs osvw 3dnowprefetch misalignsse sse4a abm cr8legacy extapic svm cmp_legacy lahf_lm
  pmm-en pmm phe-en phe ace2-en ace2 xcrypt-en xcrypt xstore-en xstore
  kvm_pv_unhalt kvm_pv_eoi kvm_steal_time kvm_asyncpf kvmclock kvm_mmu kvm_nopiodelay kvmclock
  pfthreshold pause_filter decodeassists flushbyasid vmcb_clean tsc_scale nrip_save svm_lock lbrv npt

The host server will expose different instruction set to the guest server (the emulated CPU), so when you choose your host to emulate for example “qemu64” with:

qemu-system-x86_64 -enable-kvm  \
-cpu qemu64,+ssse3,+sse4.1,+sse4.2,+x2apic -smp 2,maxcpus=8 \
-daemonize -vnc 192.168.0.10:1 \
-drive file=/mnt/storage/qemu/roofs/srv_virt.qcow2,index=0,cache=none,aio=threads,if=virtio \
-cdrom /mnt/storage/images/install-amd64-minimal-20140327.iso -boot d \
-net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex) \
-balloon virtio -m 8192 \
-monitor telnet:127.0.0.1:5801,server,nowait -writeconfig /opt/qemu/config/srv_virt.qcow2.conf

The guest server (the virtual machine) will have the following CPU and instruction set:

vendor_id       : GenuineIntel
cpu family      : 6
model           : 6
model name      : QEMU Virtual CPU version 2.0.0
stepping        : 3
microcode       : 0x1
cpu MHz         : 2133.408
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 4
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni ssse3 cx16 sse4_1 x2apic popcnt hypervisor lahf_lm
bogomips        : 4266.81
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 6
model name      : QEMU Virtual CPU version 2.0.0
stepping        : 3
microcode       : 0x1
cpu MHz         : 2133.408
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 4
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni ssse3 cx16 sse4_1 x2apic popcnt hypervisor lahf_lm
bogomips        : 4266.81
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

A base set of instructions (flags) with the explicitly included by our command with

+ssse3,+sse4.1,+sse4.2,+x2apic

. The format:

-cpu qemu64,+ssse3,+sse4.1,+sse4.2,+x2apic

IF you choose the last option:

-cpu host

the host server will try to emulate and expose to the virtual machine its processor and all flags:

qemu-system-x86_64 -enable-kvm  \
-cpu host -smp 2,maxcpus=8 \
-daemonize -vnc 192.168.0.10:1 \
-drive file=/mnt/storage/qemu/roofs/srv_virt.qcow2,index=0,cache=none,aio=threads,if=virtio \
-cdrom /mnt/storage/images/install-amd64-minimal-20140327.iso -boot d \
-net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex) \
-balloon virtio -m 8192 \
-monitor telnet:127.0.0.1:5801,server,nowait -writeconfig /opt/qemu/config/srv_virt.qcow2.conf

The virtual machine:

[root@vm0 ~]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5606  @ 2.13GHz
stepping        : 2
microcode       : 0x1
cpu MHz         : 2133.408
cache size      : 8192 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm tsc_adjust
bogomips        : 4266.81
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

The host server:

[root@srv0 ~]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5606  @ 2.13GHz
stepping        : 2
microcode       : 0x14
cpu MHz         : 1200.000
cache size      : 8192 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt aes lahf_lm tpr_shadow vnmi flexpriority ept vpid dtherm arat
bogomips        : 4266.41
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

TIP 2) Disable certain CPU flags (instruction sets)

As you can see with the above CPU options you can hide your exact type of processor and you could disable specific CPU flags (instruction sets) to the user’s virtual machine. The purpose is up to the user and one reason for example could be not offer “avx” (or “avx2”) to discourage crypto mining with the virtual machine. Or limit the SSE2/3/4/4.2/SSSE3 and other “multimedia” instruction sets to discourage video encoding and so on. Probably you would like to be used It’s up to you what to offer to the virtual machine user.
Here is the command to emulate the host CPU with all supported flags but disable “sse4.1” and “sse4.2”:
The syntax:

-cpu host,-sse4.1,-sse4.2

And the qemu command is:

qemu-system-x86_64 -enable-kvm \
-cpu host,-sse4.1,-sse4.2 \
-smp 2,maxcpus=8 \
-daemonize -vnc 192.168.0.10:1 \
-drive file=/mnt/storage/qemu/roofs/srv_virt.qcow2,index=0,cache=none,aio=threads,if=virtio \
-cdrom /mnt/storage/images/install-amd64-minimal-20140327.iso -boot d \
-net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex) \
-balloon virtio -m 8192 \
-monitor telnet:127.0.0.1:5801,server,nowait -writeconfig /opt/qemu/config/srv_virt.qcow2.conf

So the virtual machine lacks the disabled flags:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl pni pclmulqdq ssse3 cx16 pcid x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm tsc_adjust

TIP 3) Number of virtual processors in the virtual machine

The syntax

-smp 2,maxcpus=8

of the qemu command:

qemu-system-x86_64 -enable-kvm  -cpu host \
-smp 2,maxcpus=8 \
-daemonize -vnc 192.168.0.10:1 \
-drive file=/mnt/storage/qemu/roofs/srv_virt.qcow2,index=0,cache=none,aio=threads,if=virtio \
-cdrom /mnt/storage/images/install-amd64-minimal-20140327.iso -boot d \
-net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex) \
-balloon virtio -m 8192 \
-monitor telnet:127.0.0.1:5801,server,nowait -writeconfig /opt/qemu/config/srv_virt.qcow2.conf

will start up the virtual machine with 2 processors and you can hot add a cpu up to 8 total in any time you want with the management console listening on 127.0.0.1:5801.

Howto do QEMU full virtualization with bridged networking

This howto rather continues the previous one “Howto do QEMU full virtualization with MacVTap networking” with the exception it will be showed how to use a classic setup of the networking – the use of bridge device. Because this setup requires a specific configuration for every Linux distro if we do not just add the bridge manually it is separated in this howto. For the clear and full howto, we would repeat the two first steps just to enable this howto to be independent of the original one mentioned above.
So use full virtualization under Linux you can use QEMU and no other library or manager like virt-manager. QEMU is simple enough and with a couple of parameters to it, you can start KVM virtual machines with near-native performance. To use KVM you must enable it in the BIOS of your server (or desktop machine).

Here are the main steps:

STEP 1) Enable KVM in the BIOS

  • For Intel machine you must find option Intel Virtualization Technology (or Intel VT-x) probably in BIOS menu of Chipset, Advanced CPU Configuration or other.
  • For AMD machine the virtualization cannot be disabled so it is enabled by default, but you can check for additional virtualization features to enable like Virtualization Extensions, Vanderpool and other.
  • Enable also additional features – Intel VT-d or AMD IOMMU, if they are available.

Reboot your machine and check if the KVM is supported:

srv@local ~$ cat /proc/cpuinfo |grep -E "vmx|svm"
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts
...

STEP 2) Install QEMU

Under CentOS 7 you can just install couple of packets – that’s all you need:

yum install -y qemu qemu-common qemu-img qemu-kvm-common qemu-system-x86 qemu-user bridge-utils

Or under Ubuntu

apt-get install qemu-kvm bridge-utils

STEP 3) Prepare the network 1 – the bridge device

Under CentOS 7 add the following configuration file

/etc/sysconfig/network-scripts/ifcfg-br0

with the content of

DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
IPADDR0=192.168.0.1
PREFIX0=24
#GATEWAY0=192.168.0.1
NETMASK=255.255.255.0
IPV6_FAILURE_FATAL=no
NM_CONTROLLED=no
ZONE=public

If you want to use a real IP set to your virtual machine, you should set a real IP here and uncomment the GATEWAY0 with the real gateway IP. If real IP is used then you should include the main Internet network interface to the bridge by adding at the end of the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0 (if eth0 is your network interface):

...
BRIDGE=br0

And restart the network

srv@local ~$ systemctl restart network

Under Ubuntu add to the file

/etc/network/interfaces

the following:

# Bridge
auto br0
iface br0 inet static
  address 192.168.0.10
  netmask 255.255.255.0
#  gateway 192.168.0.1
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0

If you want to use real IP set to your virtual machine, you should set a real IP here and uncomment the GATEWAY0 with the real gateway IP and replace the “none” in the option “bridge_ports” with the name of your main Internet network interface. For example:

  ...
  bridge_ports eth0
  ...

And restart the network

srv@local ~$ /etc/init.d/networking restart

Or we can add the bridge device manually:

srv@local ~$ brctl addbr br0
srv@local ~$ ip link set dev br0 up
srv@local ~$ ip addr add 192.168.0.1/24 dev br0

If we use real IP we have to add the main Internet network interface to the bridge, so when you set up the network in our virtual machine with a real IP it will work with no more additional configurations, but if we use a local IPs like our setup here and we want to have Internet in our virtual machine we must enable masquerade and linux routing. You can do it with:

srv@local ~$ echo 1 > /proc/sys/net/ipv4/ip_forward
#NAT with firewalld
srv@local ~$ firewall-cmd --add-masquerade --permanent
#NAT with iptables
srv@local ~$ iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE

Use either firewalld or iptables setup, depends on your system configuration, just check if firewalld is running with:

srv@local ~$ firewall-cmd --list-all

If you receive an error, saying command not found or firewalld is not running, you should use the “NAT with iptables”
So the network is ready!

STEP 4) Prepare the network 2 – the tun/tap for the virtual machine

After we have added a bridge device tun/tap device, which will be used for the QEMU virtual machine must be added:

srv@local ~$ ip tuntap add tap0 mode tap
srv@local ~$ brctl addif br0 tap0

STEP 5) Create a QEMU hard drive

Create a 100G file

srv@local ~$ cd /mnt/storage1/disks/
srv@local ~$ qemu-img create -f qcow2 vm_harddisk.qcow2 100G
Formatting 'vm_harddisk.qcow2', fmt=qcow2 size=107374182400 encryption=off cluster_size=65536 lazy_refcounts=off 

or you can enable encryption (but on every start of your virtual machine you must set the key through the qemu console to start the virtual machine):

srv@local ~$ qemu-img create -f qcow2 vm_harddisk_e.bin -o encryption 100G
Formatting 'vm_harddisk_e.bin', fmt=qcow2 size=107374182400 encryption=on cluster_size=65536 lazy_refcounts=off

STEP 6) Boot up the QEMU KVM virtual server

srv@local ~$ qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -runas qemu -daemonize -vnc 127.0.0.1:1 \
-drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio \
-boot d -net nic,model=virtio,macaddr=00:00:00:00:00:01 -net tap,ifname=tap0 \
-balloon virtio -m 2048 -monitor telnet:127.0.0.1:5801,server,nowait

The command above will :

  • “-enable-kvm” – enable the KVM – full virtualization with near native performance
  • “-cpu host” – will expose all supported host CPU features (only supported in KVM mode)
  • “-smp 4” – sets 4 processors to the virtual machine
  • “-daemonize” – start the command in daemon mode
  • “-runas qemu” – run under user, you can run thwo whole virtual machine from a user created especially for it, no need to run it with root, even it is recommended to run it under unprivileged user
  • “-vnc 192.168.1.10:1” – start a VNC server on this IP:PORT = 192.168.1.10:5901, the IP must present on the server or you can use 0.0.0.0:1 for 0.0.0.0:5901, but in every situation limit the access by a firewall
  • “-drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio” – set the main hard drive of the system
  • “-boot d” – boot from the first hard drive
  • “-net nic,model=virtio,macaddr=00:00:00:00:00:01 -net tap,ifname=tap0” – set the network interface using the tap device created by STEP 3) and STEP 4)
  • “-balloon virtio” – use balloon driver to be able to hot add or hot remove RAM (newer version this option is depricated and it can be skipped)
  • “-m 2048” – set virtual RAM size to megs
  • “-monitor telnet:127.0.0.1:5801,server,nowait” – set the management console for the this virtual server, you can connect with:
    srv@local ~$ telnet 127.0.0.1 5801
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    QEMU 2.0.0 monitor - type 'help' for more information
    (qemu) 
    <Press "CTRL+]">
    telnet> Connection closed.
    

    When quitting the management console you must NOT exit the console with quite/exit or CTRL+d, becuause it will terminate the virtual server, you must disconnect from the console with “CTRL+]” and then quit the telnet shell. With the console you can hot add/remove CPU, RAM, network cards, pci devices, harddrives, start/stop/shutdown/reset the virtual machine and a lot more.

Boot the virtual machine from the hard drive given by “-drive” with network “-net” (couple of options), the RAM uses baloon memory and could be adjusted on-the-fly and sets the vncserver to listen for connection on port IP:port = 192.168.1.1:5901 (probably you’ll want to change this with a the real IP of your server, but be careful to set up a firewall rule for 5901 – the vnc port) and a management console listening on IP:port 127.0.0.1:5801.

* Boot the virtual server from a virtual CD/DVD

Probably the first time booting you might need to boot from an installation disk, this could be done by the following command:

srv@local ~$ qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -runas qemu -daemonize -vnc 127.0.0.1:1 -cdrom /mnt/storage1/disks/isos/CentOS-7-x86_64-NetInstall-1708.iso -boot c -drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio -net nic,model=virtio,macaddr=00:00:00:00:00:01 -net tap,ifname=tap0 -balloon virtio -m 2048 -monitor telnet:127.0.0.1:5805,server,nowait

The changes:

  1. “-boot c” – First boot device is now CD/DVD. “c” is for CD, “d” is for disk
  2. “-cdrom /mnt/storage1/disks/isos/CentOS-7-x86_64-NetInstall-1708.iso” – added the installation disk to the virtual machine

A newer QEMU version may need adding “script=no,downscript=no” to the tap0 interface!

srv@local ~$ qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -runas qemu -daemonize -vnc 127.0.0.1:1 -cdrom /mnt/storage1/disks/isos/CentOS-7-x86_64-NetInstall-1708.iso -boot c -drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio -net nic,model=virtio,macaddr=00:00:00:00:00:01 -net tap,ifname=tap0,script=no,downscript=no -m 2048 -monitor telnet:127.0.0.1:5805,server,nowait

Howto do QEMU full virtualization with MacVTap networking

To use full virtualization under linux you can use QEMU and no other library or manager like virt-manager. QEMU is simple enough and with couple of parameters to it you can start KVM virtual machines with near native performance. To use KVM you must enable it in the BIOS of your server (or desktop machine).

Here a several simple step to start a KVM virtual server:

STEP 1) Enable KVM in the BIOS

  • For Intel machine you must find option Intel Virtualization Technology (or Intel VT-x) probably in BIOS menu of Chipset, Advanced CPU Configuration or other.
  • For AMD machine the virtualization cannot be disabled so it is enabled by default, but you can check for additional virtualization features to enable like Virtualization Extensions, Vanderpool and other.
  • Enable also additional features – Intel VT-d or AMD IOMMU, if they are available.

Reboot your machine and check if the KVM is supported:

srv@local ~$ cat /proc/cpuinfo |grep -E "vmx|svm"
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts
...

STEP 2) Install QEMU

Under CentOS 7 you can just install couple of packets – that’s all you need:

yum install -y qemu qemu-common qemu-img qemu-kvm-common qemu-system-x86 qemu-user bridge-utils

Or under Ubuntu

apt-get install qemu-kvm bridge-utils

STEP 3) Prepare the network

srv@local ~$ ip link add link enp8s0f1 name macvtap0 type macvtap mode bridge
srv@local ~$ ip link set macvtap0 up

Here we create a macvtap0 device in bridge mode, these commands will create a tap device bridged to the network interface “enp8s0f1” (in our case, you must replace this device name with the device name you want to bridge your virtual machine network, probably the main interface of your server/desktop machine?). Only these two commands are needed, no other devices or network reload is needed.
The device will show in “ip addr”

7: macvtap0@enp8s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
    link/ether 2e:51:7e:bb:44:ee brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2c51:7eff:febb:44ee/64 scope link 
       valid_lft forever preferred_lft forever

This setup could expose the MAC address of the macvtap device to the router port connected

STEP 4) Create a QEMU hard drive

Create a 100G file

srv@local ~$ cd /mnt/storage1/disks/
srv@local ~$ qemu-img create -f qcow2 vm_harddisk.qcow2 100G
Formatting 'vm_harddisk.qcow2', fmt=qcow2 size=107374182400 encryption=off cluster_size=65536 lazy_refcounts=off 

or you can enable encryption (but on every start of your virtual machine you must set the key through the qemu console to start the virtual machine):

srv@local ~$ qemu-img create -f qcow2 vm_harddisk_e.bin -o encryption 100G
Formatting 'vm_harddisk_e.bin', fmt=qcow2 size=107374182400 encryption=on cluster_size=65536 lazy_refcounts=off

STEP 5) Boot up the QEMU KVM virtual server

srv@local ~$ qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -runas qemu -daemonize -vnc 127.0.0.1:1 \
-drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio \
-boot d -net nic,model=virtio,macaddr=$(cat /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(cat /sys/class/net/macvtap0/ifindex) \
-balloon virtio -m 2048 -monitor telnet:127.0.0.1:5801,server,nowait

The command above will :

  • “-enable-kvm” – enable the KVM – full virtualization with near native performance
  • “-cpu host” – will expose all supported host CPU features (only supported in KVM mode)
  • “-smp 4” – sets 4 processors to the virtual machine
  • “-daemonize” – start the command in daemon mode
  • “-runas qemu” – run under user, you can run thwo whole virtual machine from a user created especially for it, no need to run it with root, even it is recommended to run it under unprivileged user
  • “-vnc 192.168.1.10:1” – start a VNC server on this IP:PORT = 192.168.1.10:5901, the IP must present on the server or you can use 0.0.0.0:1 for 0.0.0.0:5901, but in every situation limit the access by a firewall
  • “-drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio” – set the main hard drive of the system
  • “-boot d” – boot from the first hard drive
  • “-net nic,model=virtio,macaddr=$(cat /sys/class/net/macvtap0/address) -net tap,fd=3 3<>/dev/tap$(cat /sys/class/net/macvtap0/ifindex)” – set the network interface using the tap device created by macvtap0 device (STEP 3)
  • “-balloon virtio” – use balloon driver to be able to hot add or hot remove RAM
  • “-m 2048” – set virtual RAM size to megs
  • “-monitor telnet:127.0.0.1:5801,server,nowait” – set the management console for the this virtual server, you can connect with:
    srv@local ~$ telnet 127.0.0.1 5801
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    QEMU 2.0.0 monitor - type 'help' for more information
    (qemu) 
    <Press "CTRL+]">
    telnet> Connection closed.
    

    When quitting the management console you must NOT exit the console with quite/exit or CTRL+d, becuause it will terminate the virtual server, you must disconnect from the console with “CTRL+]” and then quit the telnet shell. With the console you can hot add/remove CPU, RAM, network cards, pci devices, harddrives, start/stop/shutdown/reset the virtual machine and a lot more.

Boot the virtual machine from the hard drive given by “-drive” with network “-net” (couple of options), the RAM uses baloon memory and could be adjusted on-the-fly and sets the vncserver to listen for connection on port IP:port = 192.168.1.1:5901 (probably you’ll want to change this with a the real IP of your server, but be careful to set up a firewall rule for 5901 – the vnc port) and a management console listening on IP:port 127.0.0.1:5801.

* Boot the virtual server from a virtual CD/DVD

Probably the first time booting you might need to boot from an installation disk, this could be done by the following command:

srv@local ~$ qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -runas qemu -daemonize -vnc 127.0.0.1:1 -cdrom /mnt/storage1/disks/isos/CentOS-7-x86_64-NetInstall-1708.iso -boot c -drive file=/mnt/storage1/disks/vm_harddisk.qcow2,index=0,cache=none,aio=threads,if=virtio -net nic,model=virtio,macaddr=$(cat /sys/class/net/macvtap0/address) -net tap,fd=3 3<>/dev/tap$(cat /sys/class/net/macvtap0/ifindex) -balloon virtio -m 2048 -monitor telnet:127.0.0.1:5801,server,nowait

The changes:

  1. “-boot c” – First boot device is now CD/DVD. “c” is for CD, “d” is for disk
  2. “-cdrom /mnt/storage1/disks/isos/CentOS-7-x86_64-NetInstall-1708.iso” – added the installation disk to the virtual machine

Generate a new Groestlcoin address (wallet) and list accounts and addresses

The generation of a new Groestlcoin address is super simple, just use

groestlcoin-cli

and personally create your new address. DO NOT TRUST any online or website or any other Internet source to generate your Groestlcoin wallet address for you. DO IT YOURSELF with the official software from the official site!
And for those of you, which do not have “groestlcoin-cli” command or even do not know what is this, check out our howtos here:

  1. Install Ubuntu 16 LTS (comming soon)
  2. Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS

Go to your directory where is the groestlcoin-cli binary and execute the following command (the path and directories in the following examples are based on the above howto):

srv@local:~$ cd ~/groestlcoin-core/bin/
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getnewaddress mygroestlcoin
FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli encryptwallet "my secret pass"
wallet encrypted; Groestlcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.

The groestlcoind daemon was stopped and you need to start it again if you want to make transactions or to get your balance.
With Groestlcoin Core Wallet you can create an account, which could be a group of groestlcoin addresses (this is a groestlcoin address: “FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ”) or just use the default with no name of the account.
It is important to encrypt your wallet with a password, because if the wallet is unprotected with a password anyone could steal it! Then enter a password for your wallet protection is the second command above!

This sequence of numbers and alphabets

FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ

is your public Groestlcoin address, which could be used to receive Groestlcoins – the coins of the Groestlcoin network.

After generating the address two things must be done:

  1. Backup your Groestlcoin wallet address file (wallet.dat), which is placed in your home directory under “.groestlcoin”:
    srv@local:~/groestlcoin-core/bin$ ls -altr ~/.groestlcoin/
    srv@local:~$ ls -altr ~/.groestlcoin/
    total 476
    -rw------- 1 ubuntu ubuntu      0 Mar 27 21:41 .lock
    -rw------- 1 ubuntu ubuntu      0 Mar 27 21:41 db.log
    -rw------- 1 ubuntu ubuntu     37 Mar 27 21:41 banlist.dat
    drwx------ 3 ubuntu ubuntu   4096 Mar 27 22:18 blocks
    drwxr-xr-x 7 ubuntu ubuntu   4096 Mar 28 01:25 ..
    -rw------- 1 ubuntu ubuntu 145650 Mar 28 14:16 peers.dat
    -rw------- 1 ubuntu ubuntu     17 Mar 28 14:16 mempool.dat
    -rw------- 1 ubuntu ubuntu  16625 Mar 28 14:16 fee_estimates.dat
    -rw------- 1 ubuntu ubuntu  73728 Mar 28 14:16 wallet.dat
    -rw------- 1 ubuntu ubuntu      5 Mar 28 14:17 groestlcoin.pid
    -rw------- 1 ubuntu ubuntu     75 Mar 28 14:17 .cookie
    drwxrwxr-x 5 ubuntu ubuntu   4096 Mar 28 14:17 .
    drwx------ 2 ubuntu ubuntu   4096 Mar 28 14:18 chainstate
    drwx------ 2 ubuntu ubuntu   4096 Mar 28 14:18 database
    -rw------- 1 ubuntu ubuntu 206800 Mar 28 14:27 debug.log
    srv@local:~$ 
    

    The best practice is to backup all the files under “~/.groestlcoin/”, too!

  2. Backup your password for the private key!

Accounts

List all accounts in the wallet

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "mygroestlcoin": 0.00000000
}

List all Groestlcoin addresses in a given account:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getaddressesbyaccount ""
[
  "FYM6aAQdmg6tziT4trPb777xNfPaaUnfqp", 
  "FamX8GYBuLFkLSAbyZ7M55vFW6AECoYKEV", 
  "Fp9PwAgfTqaF3aJ4zGGLjGKP7iEMdsrR3Z"
]
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getaddressesbyaccount "mygroestlcoin"
[
  "FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ", 
  "FrrnHESU8Utqk1ZjhQZjpWwc5cjKgHwCaS"
]

* It is absolutely necessary your crypto wallet addresses to have a password for security reasons and DO NOT FORGET IT you cannot recover the password therefore your access to the wallet! If you lose your password you lose ALL your funds in the address! It’s better to write it down somewhere on a safe physical place. You can print it on a sheet of paper and place it somewhere safe!

* All available commands with “groestlcoin-cli

groestlcoin-cli help
== Blockchain ==
getbestblockhash
getblock "hash" ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolancestors txid (verbose)
getmempooldescendants txid (verbose)
getmempoolentry txid
getmempoolinfo
getrawmempool ( verbose )
gettxout "txid" n ( includemempool )
gettxoutproof ["txid",...] ( blockhash )
gettxoutsetinfo
preciousblock "hash"
verifychain ( checklevel numblocks )
verifytxoutproof "proof"

== Control ==
getinfo
getmemoryinfo
help ( "command" )
stop

== Generating ==
generate numblocks ( maxtries )
generatetoaddress numblocks address (maxtries)

== Mining ==
getblocktemplate ( TemplateRequest )
getmininginfo
getnetworkhashps ( blocks height )
prioritisetransaction <txid> <priority delta> <fee delta>
submitblock "hexdata" ( "jsonparametersobject" )

== Network ==
addnode "node" "add|remove|onetry"
clearbanned
disconnectnode "node" 
getaddednodeinfo ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
listbanned
ping
setban "ip(/netmask)" "add|remove" (bantime) (absolute)
setnetworkactive true|false

== Rawtransactions ==
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
decoderawtransaction "hexstring"
decodescript "hex"
fundrawtransaction "hexstring" ( options )
getrawtransaction "txid" ( verbose )
sendrawtransaction "hexstring" ( allowhighfees )
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )

== Util ==
createmultisig nrequired ["key",...]
estimatefee nblocks
estimatepriority nblocks
estimatesmartfee nblocks
estimatesmartpriority nblocks
signmessagewithprivkey "privkey" "message"
validateaddress "groestlcoinaddress"
verifymessage "groestlcoinaddress" "signature" "message"

== Wallet ==
abandontransaction "txid"
addmultisigaddress nrequired ["key",...] ( "account" )
addwitnessaddress "address"
backupwallet "destination"
dumpprivkey "groestlcoinaddress"
dumpwallet "filename"
getaccount "groestlcoinaddress"
getaccountaddress "account"
getaddressesbyaccount "account"
getbalance ( "account" minconf includeWatchonly )
getnewaddress ( "account" )
getrawchangeaddress
getreceivedbyaccount "account" ( minconf )
getreceivedbyaddress "groestlcoinaddress" ( minconf )
gettransaction "txid" ( includeWatchonly )
getunconfirmedbalance
getwalletinfo
importaddress "address" ( "label" rescan p2sh )
importmulti '[<json import requests>]' '<json options>' 
importprivkey "groestlcoinprivkey" ( "label" rescan )
importprunedfunds
importpubkey "pubkey" ( "label" rescan )
importwallet "filename"
keypoolrefill ( newsize )
listaccounts ( minconf includeWatchonly)
listaddressgroupings
listlockunspent
listreceivedbyaccount ( minconf includeempty includeWatchonly)
listreceivedbyaddress ( minconf includeempty includeWatchonly)
listsinceblock ( "blockhash" target-confirmations includeWatchonly)
listtransactions ( "account" count from includeWatchonly)
listunspent ( minconf maxconf  ["address",...] )
lockunspent unlock ([{"txid":"txid","vout":n},...])
move "fromaccount" "toaccount" amount ( minconf "comment" )
removeprunedfunds "txid"
sendfrom "fromaccount" "togroestlcoinaddress" amount ( minconf "comment" "comment-to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
sendtoaddress "groestlcoinaddress" amount ( "comment" "comment-to" subtractfeefromamount )
setaccount "groestlcoinaddress" "account"
settxfee amount
signmessage "groestlcoinaddress" "message"
walletlock
walletpassphrase "passphrase" timeout
walletpassphrasechange "oldpassphrase" "newpassphrase"

Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS

This howto is made to show you how to run a full Groestlcoin node. To run a Groestlcoin node we need the official Groestlcoin daemon software:

groestlcoind

from the Groestlcoin Core package: https://www.groestlcoin.org/groestlcoin-core-wallet/ This program will start and wait for the network synchronization – our Groestlcoin node will receive all the blockchains of the network!
Installing (or compiling it) the Groestlcoin Core software of the official site will ensure you have the right software for generating and sending/receiving transactions securely and privately! Always use your node software for generating the Groestlcoin wallet address, DO NOT TRUST any sites, which offer you a creation of Groestlcoin wallet. In crypto world the one how controls the private key of the wallet (which is generated with the creation of the wallet) controls the Groestlcoin wallet address so controls your funds! It is so important that we repeat it in EVERY cryptocurrency howto! Just Install or compile a Groestlcoin Core node software – Running a Groestlcoin node (cli) from source under Ubuntu 16 LTS and you’ll everything you need to manage your Groestlcoin funds!
It’s worth mentioning again this section of Groestlcoin (Wallet) node howto:
And also be warned DO NOT use insecure sources when:

  1. installing Ubuntu, install it from a cd/dvd/usb downloaded from the official Ubuntu site here.
  2. installing all the needed dependencies from official sources only, not recommended the PPA reposigories, neither!
  3. install yourself the “groestlcoind” program (the official Groestlcoin software), which will create an Groestlcoin node and after network synchronization could be used to create an Groestlcoin node.

Three simple rules could almost eliminate leaking your private key to hackers, which in blockchain world means losing your money…

With Groestlcoin you can still use ordinary hard drive, but it will be much slower than SSDs.

USE SSD

STEP 1) Install Ubuntu 16 – our howto will be available soon here.

STEP 2) Building from source an Groestlcoin (Wallet) node

Check out our howto “Running a Groestlcoin node (cli) from source under Ubuntu 16 LTS“.

STEP 3) Start the Groestlcoin node

if you have followed the howto in STEP 2) you probably have “groestlcoind” installed in “~/groestlcoin-core/bin”, so run it with:

ubuntu@srv.local:~/groestlcoin-core/bin$ ./groestlcoind &> ./groestlcoind.log

It is a good practice to run it with screen and in an infinite loop – if the program crashes it will start automatically and you’ll always have a synchronized node, of course, if you do not need a Groestlcoin (wallet) node running all the time the infinite loop is not needed. The user could just start the node, wait for synchronization and then make your transactions and stop the node, after several days you can start it up the catching up the synchronization won’t take much time:

ubuntu@srv.local:~$ screen -R groestlcoin
ubuntu@srv.local:~$ cd groestlcoin-core/bin/
ubuntu@srv.local:~/groestlcoin-core/bin$ while true; do ./groestlcoind &> ./groestlcoind.log;done

STEP 3) Wait for the blockchain network synchronization

This step could take significant amount of time, server resources and network bandwidth! USE SSD(s) for your home directory, because the blockchain database will be saved at your

home directory/.groestlcoin/

If you want to move it on another server or directory (or device) you must copy this directory to the new location.
When you run “groestlcoind” it will check the current state of the network and the current state of your groestlcoin (wallet) node, so no matter it is started for the first time or not a network synchronization is needed, your node need to be synchronized with the groestlcoin network to be used for all kind of actions in the network (create a wallet, transfer funds and more).
Here is the “~/.groestlcoin” direcotry:

srv@local:~$ ls -altr .groestlcoin/
total 24356
drwxr-xr-x 7 ubuntu ubuntu     4096 Mar 27 21:41 ..
-rw------- 1 ubuntu ubuntu        0 Mar 27 21:41 .lock
-rw------- 1 ubuntu ubuntu        6 Mar 27 21:41 groestlcoin.pid
-rw------- 1 ubuntu ubuntu        0 Mar 27 21:41 db.log
-rw------- 1 ubuntu ubuntu       75 Mar 27 21:41 .cookie
drwx------ 2 ubuntu ubuntu     4096 Mar 27 21:41 chainstate
drwx------ 3 ubuntu ubuntu     4096 Mar 27 21:41 blocks
drwx------ 2 ubuntu ubuntu     4096 Mar 27 21:41 database
-rw------- 1 ubuntu ubuntu    90112 Mar 27 21:41 wallet.dat
-rw------- 1 ubuntu ubuntu     1106 Mar 27 21:41 peers.dat
-rw------- 1 ubuntu ubuntu       37 Mar 27 21:41 banlist.dat
drwxrwxr-x 5 ubuntu ubuntu     4096 Mar 27 21:41 .
-rw------- 1 ubuntu ubuntu 24809419 Mar 27 21:48 debug.log
srv@local:~$ 

You can monitor all activity and synchronization of the groestlcoin (wallet) node in

debug.log

Here is the log of the node start:

2018-03-27 21:41:57 Groestlcoin version v2.13.3
2018-03-27 21:41:57 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-03-27 21:41:57 Default data directory /home/ubuntu/.groestlcoin
2018-03-27 21:41:57 Using data directory /home/ubuntu/.groestlcoin
2018-03-27 21:41:57 Using config file /home/ubuntu/.groestlcoin/groestlcoin.conf
2018-03-27 21:41:57 Using at most 125 connections (1024 file descriptors available)
2018-03-27 21:41:57 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2018-03-27 21:41:57 Using 4 threads for script verification
2018-03-27 21:41:57 scheduler thread start
2018-03-27 21:41:57 HTTP: creating work queue of depth 16
2018-03-27 21:41:57 No rpcpassword set - using random cookie authentication
2018-03-27 21:41:57 Generated RPC authentication cookie /home/ubuntu/.groestlcoin/.cookie
2018-03-27 21:41:57 HTTP: starting 4 worker threads
2018-03-27 21:41:57 Using BerkeleyDB version Berkeley DB 5.3.28: (September  9, 2013)
2018-03-27 21:41:57 Using wallet wallet.dat
2018-03-27 21:41:57 init message: Verifying wallet...
2018-03-27 21:41:57 CDBEnv::Open: LogDir=/home/ubuntu/.groestlcoin/database ErrorFile=/home/ubuntu/.groestlcoin/db.log
2018-03-27 21:41:57 Bound to [::]:1331
2018-03-27 21:41:57 Bound to 0.0.0.0:1331
2018-03-27 21:41:57 Cache configuration:
2018-03-27 21:41:57 * Using 2.0MiB for block index database
2018-03-27 21:41:57 * Using 8.0MiB for chain state database
2018-03-27 21:41:57 * Using 290.0MiB for in-memory UTXO set
2018-03-27 21:41:57 init message: Loading block index...
2018-03-27 21:41:57 Opening LevelDB in /home/ubuntu/.groestlcoin/blocks/index
2018-03-27 21:41:57 Opened LevelDB successfully
2018-03-27 21:41:57 Using obfuscation key for /home/ubuntu/.groestlcoin/blocks/index: 0000000000000000
2018-03-27 21:41:57 Opening LevelDB in /home/ubuntu/.groestlcoin/chainstate
2018-03-27 21:41:57 Opened LevelDB successfully
2018-03-27 21:41:57 Using obfuscation key for /home/ubuntu/.groestlcoin/chainstate: 0000000000000000
2018-03-27 21:41:57 LoadBlockIndexDB: last block file = 0
2018-03-27 21:41:57 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2018-03-27 21:41:57 Checking all blk files are present...
2018-03-27 21:41:57 LoadBlockIndexDB: transaction index disabled
2018-03-27 21:41:57 Initializing databases...
2018-03-27 21:41:57 Pre-allocating up to position 0x1000000 in blk00000.dat
2018-03-27 21:41:57 init message: Verifying blocks...
2018-03-27 21:41:57  block index              18ms
2018-03-27 21:41:57 init message: Loading wallet...
2018-03-27 21:41:57 nFileVersion = 2130300
2018-03-27 21:41:57 Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total
2018-03-27 21:41:57 Performing wallet upgrade to 60000
2018-03-27 21:41:57 keypool added key 1, size=1
2018-03-27 21:41:57 keypool added key 2, size=2
2018-03-27 21:41:57 keypool added key 3, size=3
2018-03-27 21:41:57 keypool added key 4, size=4
2018-03-27 21:41:57 keypool added key 5, size=5
2018-03-27 21:41:57 keypool added key 6, size=6
2018-03-27 21:41:57 keypool added key 7, size=7
2018-03-27 21:41:57 keypool added key 8, size=8
2018-03-27 21:41:57 keypool added key 9, size=9
2018-03-27 21:41:57 keypool added key 10, size=10
2018-03-27 21:41:57 keypool added key 11, size=11
2018-03-27 21:41:57 keypool added key 12, size=12
2018-03-27 21:41:57 keypool added key 13, size=13
2018-03-27 21:41:57 keypool added key 14, size=14
2018-03-27 21:41:57 keypool added key 15, size=15
2018-03-27 21:41:57 keypool added key 16, size=16
2018-03-27 21:41:57 keypool added key 17, size=17
2018-03-27 21:41:57 keypool added key 18, size=18
2018-03-27 21:41:57 keypool added key 19, size=19
2018-03-27 21:41:57 keypool added key 20, size=20
2018-03-27 21:41:57 keypool added key 21, size=21
2018-03-27 21:41:57 keypool added key 22, size=22
2018-03-27 21:41:57 keypool added key 23, size=23
2018-03-27 21:41:57 keypool added key 24, size=24
2018-03-27 21:41:57 keypool added key 25, size=25
2018-03-27 21:41:57 keypool added key 26, size=26
2018-03-27 21:41:58 keypool added key 27, size=27
2018-03-27 21:41:58 keypool added key 28, size=28
2018-03-27 21:41:58 keypool added key 29, size=29
2018-03-27 21:41:58 keypool added key 30, size=30
2018-03-27 21:41:58 keypool added key 31, size=31
2018-03-27 21:41:58 keypool added key 32, size=32
2018-03-27 21:41:58 keypool added key 33, size=33
2018-03-27 21:41:58 keypool added key 34, size=34
2018-03-27 21:41:58 keypool added key 35, size=35
2018-03-27 21:41:58 keypool added key 36, size=36
2018-03-27 21:41:58 keypool added key 37, size=37
2018-03-27 21:41:58 keypool added key 38, size=38
2018-03-27 21:41:58 keypool added key 39, size=39
2018-03-27 21:41:58 keypool added key 40, size=40
2018-03-27 21:41:58 keypool added key 41, size=41
2018-03-27 21:41:58 keypool added key 42, size=42
2018-03-27 21:41:58 keypool added key 43, size=43
2018-03-27 21:41:58 keypool added key 44, size=44
2018-03-27 21:41:58 keypool added key 45, size=45
2018-03-27 21:41:58 keypool added key 46, size=46
2018-03-27 21:41:58 keypool added key 47, size=47
2018-03-27 21:41:58 keypool added key 48, size=48
2018-03-27 21:41:58 keypool added key 49, size=49
2018-03-27 21:41:58 keypool added key 50, size=50
2018-03-27 21:41:58 keypool added key 51, size=51
2018-03-27 21:41:58 keypool added key 52, size=52
2018-03-27 21:41:58 keypool added key 53, size=53
2018-03-27 21:41:58 keypool added key 54, size=54
2018-03-27 21:41:58 keypool added key 55, size=55
2018-03-27 21:41:58 keypool added key 56, size=56
2018-03-27 21:41:58 keypool added key 57, size=57
2018-03-27 21:41:58 keypool added key 58, size=58
2018-03-27 21:41:58 keypool added key 59, size=59
2018-03-27 21:41:58 keypool added key 60, size=60
2018-03-27 21:41:58 keypool added key 61, size=61
2018-03-27 21:41:58 keypool added key 62, size=62
2018-03-27 21:41:58 keypool added key 63, size=63
2018-03-27 21:41:58 keypool added key 64, size=64
2018-03-27 21:41:58 keypool added key 65, size=65
2018-03-27 21:41:58 keypool added key 66, size=66
2018-03-27 21:41:58 keypool added key 67, size=67
2018-03-27 21:41:58 keypool added key 68, size=68
2018-03-27 21:41:58 keypool added key 69, size=69
2018-03-27 21:41:58 keypool added key 70, size=70
2018-03-27 21:41:58 keypool added key 71, size=71
2018-03-27 21:41:58 keypool added key 72, size=72
2018-03-27 21:41:58 keypool added key 73, size=73
2018-03-27 21:41:58 keypool added key 74, size=74
2018-03-27 21:41:58 keypool added key 75, size=75
2018-03-27 21:41:58 keypool added key 76, size=76
2018-03-27 21:41:58 keypool added key 77, size=77
2018-03-27 21:41:58 keypool added key 78, size=78
2018-03-27 21:41:58 keypool added key 79, size=79
2018-03-27 21:41:58 keypool added key 80, size=80
2018-03-27 21:41:58 keypool added key 81, size=81
2018-03-27 21:41:58 keypool added key 82, size=82
2018-03-27 21:41:58 keypool added key 83, size=83
2018-03-27 21:41:58 keypool added key 84, size=84
2018-03-27 21:41:58 keypool added key 85, size=85
2018-03-27 21:41:58 keypool added key 86, size=86
2018-03-27 21:41:58 keypool added key 87, size=87
2018-03-27 21:41:58 keypool added key 88, size=88
2018-03-27 21:41:58 keypool added key 89, size=89
2018-03-27 21:41:58 keypool added key 90, size=90
2018-03-27 21:41:58 keypool added key 91, size=91
2018-03-27 21:41:58 keypool added key 92, size=92
2018-03-27 21:41:58 keypool added key 93, size=93
2018-03-27 21:41:58 keypool added key 94, size=94
2018-03-27 21:41:58 keypool added key 95, size=95
2018-03-27 21:41:58 keypool added key 96, size=96
2018-03-27 21:41:58 keypool added key 97, size=97
2018-03-27 21:41:58 keypool added key 98, size=98
2018-03-27 21:41:58 keypool added key 99, size=99
2018-03-27 21:41:58 keypool added key 100, size=100
2018-03-27 21:41:58 keypool added key 101, size=101
2018-03-27 21:41:58 keypool reserve 1
2018-03-27 21:41:58 keypool keep 1
2018-03-27 21:41:58  wallet                  453ms
2018-03-27 21:41:58 setKeyPool.size() = 100
2018-03-27 21:41:58 mapWallet.size() = 0
2018-03-27 21:41:58 mapAddressBook.size() = 1
2018-03-27 21:41:58 UpdateTip: new best=00000ac5927c594d49cc0bdb81759d0da8297eb614683d3acb62f0703b639023 height=0 version=0x00000070 log2_work=20.000001 tx=1 date='2014-03-20 19:13:49' progress=0.000007 cache=0.0MiB(0tx)
2018-03-27 21:41:58 mapBlockIndex.size() = 1
2018-03-27 21:41:58 Failed to open mempool file from disk. Continuing anyway.
2018-03-27 21:41:58 nBestHeight = 0
2018-03-27 21:41:58 torcontrol thread start
2018-03-27 21:41:58 init message: Loading addresses...
2018-03-27 21:41:58 ERROR: Read: Failed to open file /home/ubuntu/.groestlcoin/peers.dat
2018-03-27 21:41:58 Invalid or missing peers.dat; recreating
2018-03-27 21:41:58 init message: Loading banlist...
2018-03-27 21:41:58 ERROR: Read: Failed to open file /home/ubuntu/.groestlcoin/banlist.dat
2018-03-27 21:41:58 Invalid or missing banlist.dat; recreating
2018-03-27 21:41:58 init message: Starting network threads...
2018-03-27 21:41:58 net thread start
2018-03-27 21:41:58 init message: Done loading
2018-03-27 21:41:58 dnsseed thread start
2018-03-27 21:41:58 addcon thread start
2018-03-27 21:41:58 Loading addresses from DNS seeds (could take a while)
2018-03-27 21:41:58 opencon thread start
2018-03-27 21:41:58 msghand thread start
2018-03-27 21:41:58 5 addresses found from DNS seeds
2018-03-27 21:41:58 dnsseed thread exit
2018-03-27 21:41:58 receive version message: /Groestlcoin:2.13.3/: version 70015, blocks=2020505, us=18.220.186.120:43158, peer=0
2018-03-27 21:41:59 Pre-allocating up to position 0x100000 in rev00000.dat
2018-03-27 21:41:59 UpdateTip: new best=00000973d52019a3fdda1b1f346e1d76cbf12f8fdd9fbf0ade33bc1da89cb2e9 height=1 version=0x00000070 log2_work=21.000001 tx=2 date='2014-03-22 13:41:11' progress=0.000014 cache=0.0MiB(1tx)
2018-03-27 21:41:59 UpdateTip: new best=000005a19e5880b2e85af1ece6a7a853dd786081915c9e5744da7d9d49e036b2 height=2 version=0x00000070 log2_work=21.584964 tx=3 date='2014-03-22 13:41:12' progress=0.000020 cache=0.0MiB(2tx)
2018-03-27 21:41:59 UpdateTip: new best=00000b7b176cc31f551ff383a57c1ef468b63d2b29ca0819d6728e74892868d5 height=3 version=0x00000070 log2_work=22.000001 tx=4 date='2014-03-22 13:41:14' progress=0.000027 cache=0.0MiB(3tx)

Last couple of lines shows that the synchronization process is running…

With “groestlcoin-cli” we can check the process of synchronization:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getblockchaininfo
{
  "chain": "main",
  "blocks": 1592616,
  "headers": 2020535,
  "bestblockhash": "0000000002e22d910805ded76c2ecf8538b71bde259a87d42eb0f461874ac470",
  "difficulty": 29.7853045557759,
  "mediantime": 1495007637,
  "verificationprogress": 0.9850607167871146,
  "chainwork": "0000000000000000000000000000000000000000000000000238bd35306e983c",
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": true
      }
    }, 
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": true
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "active",
      "startTime": 1484956800,
      "timeout": 1498003200,
      "since": 1439424
    },
    "segwit": {
      "status": "active",
      "startTime": 1484956800,
      "timeout": 1498003200,
      "since": 1439424
    },
    "bip65": {
      "status": "active",
      "startTime": 1484956800,
      "timeout": 1498003200,
      "since": 1439424
    }
  }
}

You can see we are at 1592616 of total 2020535. When “blocks” count equalize with the “headers” your Groestlcoin (wallet) node is synchronized successfully and the debug.log will just only output a couple of lines every minutes:

2018-03-27 22:25:49 UpdateTip: new best=000000000002c7e048092df98fd1d15f0e16e444f1c98f8777b826640e614e32 height=2020547 version=0x20000000 log2_work=60.941936 tx=2701441 date='2018-03-27 22:25:22' progress=1.000000 cache=94.0MiB(426839tx)
2018-03-27 22:25:56 UpdateTip: new best=0000000000063fc891f7a82e86ed43c30fd31c749955d7f0389b89a968fde322 height=2020548 version=0x20000000 log2_work=60.941946 tx=2701442 date='2018-03-27 22:25:49' progress=1.000000 cache=94.0MiB(426840tx)

The starting date of the line will differ with couple of seconds of the date in the transaction – the “date=” after the “tx=”.
Now you can start using your Groestlcoin (wallet) node for transactions and

At present with SSD and 16G RAM on a intel i7 processor and a fast Internet connection 100Mbps the full synchronization took about 40 minutes and 2G of storage space.
You are ready to use “groestlcoin-cli” or the others program to manage your funds – for example send, receive, check balance of your funds.
If you stop and start the program it will start the synchronization from the point you stopped.