ISC DHCP Scopes

Dashboard

Monitor linux dhcp pools with telegraf, influxdb and dhcpd-pools
Last updated: 2 years ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 46

Reviews: 0

  • Screenshot.PNG
    Screenshot.PNG

monitor isc-dhcpd servers with telegraf, influxdb, dhcpd-pools, dhcpd

Collector Configuration Details

install dhcpd-pools - http://dhcpd-pools.sourceforge.net/

create a short script...

#!/bin/bash

/usr/local/bin/dhcpd-pools -c /etc/dhcp/dhcpd.conf --format=j > /var/www/html/dhcpd/dhcpd.json

test by hand...

create telegraf config file

[[inputs.http]]

urls = [ "http://dhcp.host.address/dhcpd/dhcpd.json" ]

method = "GET"

timeout = "15s"

data_format = "json"

json_string_fields = ["fields.*"]

name_override = "dhcpd_stats"

once that's all working and tested manually, import the dashboard and update the queries to reflect the urls you're collecting from.

Last step is to add the script you created to the cron of the dhcpd server. I run it once a minute.

note: the gauge is calculated with nested select statements

Get this dashboard:
12373
Dependencies: