Feature #5186
closed
dhcp lease counter on status_dhcp_leases.php
Added by jeroen van breedam almost 9 years ago.
Updated almost 9 years ago.
Description
Me & my collegues thought it would be useful to know how many leases are in use (without having to copy it to an excel sheet, or run a script)
i'm not a coder. the code in the pull request, probably, is not up to standards.
i've tested it on 3 running systems, ranging from 2.2.1 --> 2.2.4. seems to work fine.
please advise ;)
https://github.com/pfsense/pfsense/pull/1930
thanks in advance.
- Category set to DHCP (IPv4)
- Target version set to 2.3
this can probably be closed, 1932 has been merged.
thanks all
- Status changed from New to Feedback
will leave for testing confirmation.
Thanks Jeroen!
created an additional pull after someone asked me to add an 'interface' column to the lease_counter table.
i stumbled upon the get_configured_interface_with_descr() function to translate the OPTx to a useful name. not sure if that is ok or not. (saw it being used in services_dhcp.php)
https://github.com/pfsense/pfsense/pull/1937
- Assignee set to Chris Buechler
- Status changed from Feedback to Resolved
This appears to be working as intended for me on 2.3. Lease count is accurate, interface/pool info looks good. Might be helpful to see output from a larger deployment but if there is a newly discovered problem with it, we can open a bug report rather than keeping this open.
Also available in: Atom
PDF