DHCP client list widget for Dashboard

Started by DerMozart, September 14, 2021, 11:30:17 AM

Previous topic - Next topic
Hi my name is Johannes and I am new to the forum (just registered, this is my first post).
I found this archived post:
https://forum.opnsense.org/index.php?topic=7815.0
but no solution to the problem of having a list of the current dhcp clients in the network.

So I copied some stuff from some scripts and created a widget for the dashboard, you can find it here:
https://github.com/jbaconsult/opnsense_stuff/blob/main/dhcp_leases.widget.php

Looking forward to your comments and suggestions. Maybe there is already a widget for this and I just didn't know, then please ignore this.

Cheers
Johannes

Hello Mozart,

Great widget, so thanks for your work :)

Hello Johannes,

Can you explain how I can add this widget to Opnsense?

It's explained in the README file at the top of the project:

https://github.com/jbaconsult/opnsense_stuff/tree/main

Just download the two files and copy them to the named locations on your OPNsense.

E.g. as root:
fetch -o /usr/local/www/widgets/widgets/dhcp_leases.widget.php https://raw.githubusercontent.com/jbaconsult/opnsense_stuff/main/dhcp_leases.widget.php
fetch -o /usr/local/www/widgets/include/dhcp_leases.inc https://raw.githubusercontent.com/jbaconsult/opnsense_stuff/main/dhcp_leases.inc


HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Please note the old dashboard and its widgets will no longer be part of (or work) with the upcoming 24.7.

And yes yes the ones that are there will be converted to new widgets. Just not this one as it's not in the code.


Cheers,
Franco

September 14, 2024, 09:48:45 PM #5 Last Edit: September 15, 2024, 01:17:11 AM by woggle
I was able to make an updated widget. If I figure out how to share it, I will. I'm not very familiar with github anymore.

Quote from: franco on July 10, 2024, 08:30:27 AM
Please note the old dashboard and its widgets will no longer be part of (or work) with the upcoming 24.7.

And yes yes the ones that are there will be converted to new widgets. Just not this one as it's not in the code.


Cheers,
Franco

I have created a pull request for the widget I made... maybe now it will be in the code. https://github.com/opnsense/core/pull/7865