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
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 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
The widget is now fully compatible with the new dashboard system.
@franco How about making this part of OPNsense?
Last response by Stephan and without discussion no progress. Showing all the leases may not be of much help, a condensed lease statistic and maybe "last 5 leases" makes a lot more sense to me for the same arguments already shared in the PR.
Cheers,
Franco