Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dashboard widget for DHCP Leases

    Scheduled Pinned Locked Moved webGUI
    6 Posts 5 Posters 4.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SIGUSRpi
      last edited by

      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?)

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        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 ...)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • N
          NOYB
          last edited by

          @Gertjan:

          Widgets aught to refresh regularly.

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

          1 Reply Last reply Reply Quote 0
          • S
            SIGUSRpi
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              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.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • S
                StyleNZ
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.