Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mweinelt/lua-lease-monitor

Provides DHCP leases via ubus based on data pulled from udhcpsnoop
https://github.com/mweinelt/lua-lease-monitor

Last synced: 7 days ago
JSON representation

Provides DHCP leases via ubus based on data pulled from udhcpsnoop

Awesome Lists containing this project

README

        

# lua-lease-monitor

A lua script that provides DHCP lease information that flows via the
local access point.

The snooping happens with via data provided by [udhcpsnoop](https://github.com/blogic/udhcpsnoop)

There is a patch that applies against the hostapd_stations collector
that is part of prometheus-node-exporter-lua maintained in
openwrt/packages.

I've used this setup to enhance station information with IP addresses
and hostnames to get a richer Grafana dashboard experience.

It should honestly be cleaned up and packaged for public consumption
via the packages feed. That's a todo for another time, for now this
repository serves as a code dump for anyone to make us of it.