Skip to main content

Netdata

How to use Netdata's remote ports?

Netdata connects as a unix socket by default in QuickBox Lite,so if you need to use a TCP port for monitoring, you need to:

  1. remove following information in configuration

    /etc/netdata/netdata.conf
    [web]
    bind to = unix:/run/netdata/netdata.sock
  2. restart netdata

    systemctl restart netdata
  3. modify Nginx configuration

    /etc/nginx/apps/netdata.conf
    proxy_pass http://unix:/run/netdata/netdata.sock:/$ndpath$is_args$args;

    to

    /etc/nginx/apps/netdata.conf
    proxy_pass http://127.0.0.1:19999/$ndpath$is_args$args;
  4. restart Nginx

    nginx -t
    nginx -s reload

How to connect Agent to Cloud?

There are 2 ways to claim your agent:

  1. Claiming script

    netdata-claim.sh -token=MYTOKEN1234567
  2. Netdata Agent command line

    /usr/sbin/netdata -D -W "claim -token=MYTOKEN1234567"

The token can be found on cloud dashboard. The claiming operation requires root privileges.