Dashboard widget for DHCP Leases



  • I'm a new user of 2.3.4-RELEASE, and find myself often going through the main dashboard for most of what I need to see at a glance, followed by Status -> DHCP Leases to get the rest of what I need to see.  :-)

    Is there a widget somewhere which would put the leases on the dashboard page?  Doesn't have to be the full row of info and editing actions, just a subset would probably be enough for me.  The available widgets in the basic 2.3.4 doesn't include such a thing (there's a "Services Status" but that only shows whether DHCP is running, not the leases).  I know there are install-able addon packages, but none of the ones on the built-in list seem to do this either…. unless I'm misusing the package manager UI.  (Are there other third-party package repositories for pfsense?)



  • Widgets aught to refresh regularly.
    Showing the DHCP leases means parsing to whole list, to distillate only a line per device would be …. useless.
    First : leases do not change every minute or so - more like every hour or every day. You'll wind up with pretty static info.
    Second : one systems with big lease pools it would be an "interface-killer" to refresh the widget info ....

    Btw : the info is one click away ;)

    Explain : Why dhcp leases on the front page ? (and why not the IPv6 equivalents ?? - much more important these days ...)



  • @Gertjan:

    Widgets aught to refresh regularly.

    They certainly ought to.  Not convinced though that they aught to.



  • @Gertjan:

    Showing the DHCP leases means parsing to whole list, to distillate only a line per device would be …. useless.

    The standard lease list only shows a single line per device already.  I don't need some of the columns, but the distillation is clearly useful now or it wouldn't be there.

    First : leases do not change every minute or so - more like every hour or every day. You'll wind up with pretty static info.
    Second : one systems with big lease pools it would be an "interface-killer" to refresh the widget info ….

    It's not a typical use case, which is why I didn't want to write out all the irrelevant background.

    This is a very specialized network with experimental devices.  In real deployment the devices don't use DHCP, but for a certain class of testing, DHCP is the kind of traffic we want, and the leases are quite short as a side effect.  But we have to keep an eye on them.

    (I'm also planning on setting up or buying a pfsense box for my home network.  Obviously typical DHCP there, and no need for this kind of thing.)

    Btw : the info is one click away ;)

    I know.  As I wrote, I'm clicking on it, over and over and over…

    Anyhow, it would have saved some effort, but obviously not essential feature.  Thanks.


  • LAYER 8 Global Moderator

    Do you want to see the leases or the number of leases in your pool, used, etc?

    If you just want to see the number of lease used/available you can use the monitoring graphs and set the update interval on it to say 1 minute.  I don't think dhcp leases are graphed out of the box - you have to enable that feature with checkbox on your dhcp tab.



  • Hi there guys.

    There is a working widget for this if this is what you are wanting.
    1 kind member had previously done work on it here and it was just updated yesterday by another kind member.

    https://forum.pfsense.org/index.php?topic=97823.0

    Just follow the thread and it should all work out for you guys too!

    Cheers.


Log in to reply