OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • DHCP client list widget for Dashboard
« previous next »
  • Print
Pages: [1]

Author Topic: DHCP client list widget for Dashboard  (Read 8115 times)

DerMozart

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
    • View Profile
DHCP client list widget for Dashboard
« on: September 14, 2021, 11:30:17 am »
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
Logged

WimNL

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #1 on: January 10, 2024, 02:18:56 pm »
Hello Mozart,

Great widget, so thanks for your work :)
Logged

Leem

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #2 on: May 26, 2024, 07:34:00 pm »
Hello Johannes,

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

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6923
  • Karma: 583
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #3 on: May 26, 2024, 07:44:34 pm »
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:
Code: [Select]
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
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #4 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
Logged

woggle

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #5 on: September 14, 2024, 09:48:45 pm »
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.
« Last Edit: September 15, 2024, 01:17:11 am by woggle »
Logged

woggle

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: DHCP client list widget for Dashboard
« Reply #6 on: September 15, 2024, 04:32:58 am »
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • DHCP client list widget for Dashboard
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2