Help to configure Collectd

Started by Dexter_23, March 27, 2023, 10:50:53 AM

Previous topic - Next topic
Hi

I need help to install and configure collectd for monitor cpu,ping etcetc.

For now i only install collectd on OPNSense but i don't know how to enable graphs like screenshoot i attach

Collect sends the data to some external time series database like InfluxDB or Graphite.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hi

Did you see the screenshoot i have attached? Collectd Graph Panel
https://github.com/pommi/CGP
Is possible to install CGP on OPNSense directly?

It may be possible but the plugin is intended to be an agent only, not a central server

ok so the question is, what system did you use for monitoring collectd metrics?

InfluxDB and Grafana.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Ok did you have a tutorial for install and configure?

What platform? I use a FreeBSD jail.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I don't know what platform did you recommended to use? What is FreeBSD Jail?

You need a separate server. What operating system does that run? A VM would be fine. A jail is a FreeBSD native container that can be run on e.g. TrueNAS, which is what I do.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I have a Proxmox Server on Hetzner witch have a lxc container on docker engine on top or it's better to create a VM with Debian or Ubuntu Server?

Whatever you can use to run Influx and Grafana ...

To the influxd.conf you need to create a "graphite plaintext" compatible connector:
[[graphite]]
  enabled = true
  database = "opnsense"
  retention-policy = ""
  bind-address = ":2003"
  protocol = "tcp"
  consistency-level = "one"

  separator = "."

  templates = [
    "servers.* .hostname.resource.instance.measurement*",
  ]


Then point your collectd at the influxd IP address, Port 2003. See screenshot for details.

Then point Grafana at Influx as a data source ...
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hi

Thank you for the advice, i think the easy and fast way is to deploy a container with docker for influxdb and grafana

@pmhausen

I deploy grafana e influxdb, i add influxdb database source to grafana, the influxdb service is listening on 8086/tcp, i don't understand why i need to edit influxdb.conf and add graphite listen on 2003/tcp, so i need   to expose 2023/tcp port  in addition 8086/tcp on influxdb container?


[[graphite]] >>>>> and this is an error 4 square brackets?
  enabled = true
  database = "opnsense"
  retention-policy = ""
  bind-address = ":2003"
  protocol = "tcp"
  consistency-level = "one"

  separator = "."

  templates = [
    "servers.* .hostname.resource.instance.measurement*",
  ]

Collectd does not speak the native Influx protocol but both collectd and Influxd can speak the Graphite plain text protocol. So that's what we use. You can use a Graphite database instead of Influx but that is much more complicated to set up.

In Influx you need only the connector on port 2003 to receive data. I have to look up how Grafana communicates with Influx to retrieve data ...

The 4 brackets are correct at least for Influx 1.8.x - I don't have a 2.x installation available.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)