Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: you only need collectd on this second server – for the types definition, so you could copy this from any server that has collectd installed

 

ON Ubuntu 16.04

On the DUT

So on the DUT you will need to configure collectd to send the metrics it collects to the server running influx + grafana using the network plugin:

...

make sure the "typesdb" option is pointing to the collectd types.

 

search and modify the [[collectd]] block

Code Block
$  sudo vi /etc/influxdb/influxdb.conf
 
[[collectd]]
  enabled = true
  bind-address = ":25826" # the bind address
  database = "collectd" # Name of the database that will be written to
  retention-policy = ""
  batch-size = 5000 # will flush if this many points get buffered
  batch-pending = 10 # number of batches that may be pending in memory
  batch-timeout = "10s"
  read-buffer = 0 # UDP read buffer size, 0 means to use OS default
  typesdb = "/opt/collectd/share/collectd/types.db"
  security-level = "none" # "none", "sign", or "encrypt"

 

IF collectd is not installed on the system - download the types.db file as influx needs this

Code Block
$ mkdir /opt/collectd && mkdir /opt/collectd && mkdir /opt/collectd/share && /opt/collectd/share/collectd && cd /opt/collectd/share/collectd && wget https://raw.githubusercontent.com/collectd/collectd/master/src/types.db && cd -

 

 

 

Start InfluxDB

Code Block
$ sudo service influxdb start

 

Configure Grafana repos and install it:

...