Re: Monitoring DHCP pool state
On Thu, Oct 08, 2009 at 02:06:30PM +0100, Ian Chard wrote: > I'm using the stock OpenBSD dhcpd, and I'd like to monitor the state of > the pool (how many addresses in use/available). Is there any way of > doing this without writing a parser for /var/db/dhcpd.leases? You could set up your dhcpd to maintain PF tables (see dhcpd's -A -C and -L options) and monitor the number of entries in the tables. You could even use something like pfctl -t assigned -T show | wc -l -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: Monitoring DHCP pool state
I've used this before with good results: http://dhcpstatus.sourceforge.net/install.html /Pete On 8. okt.. 2009, at 15.06, Ian Chard wrote: Hi, I'm using the stock OpenBSD dhcpd, and I'd like to monitor the state of the pool (how many addresses in use/available). Is there any way of doing this without writing a parser for /var/db/dhcpd.leases? Would I be better off using a different dhcpd? Thanks - Ian -- Ian Chard, Senior Unix and Network Gorilla | E: ian.ch...@sers.ox.ac.uk Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services | F: (01865) 242287
Monitoring DHCP pool state
Hi, I'm using the stock OpenBSD dhcpd, and I'd like to monitor the state of the pool (how many addresses in use/available). Is there any way of doing this without writing a parser for /var/db/dhcpd.leases? Would I be better off using a different dhcpd? Thanks - Ian -- Ian Chard, Senior Unix and Network Gorilla | E: ian.ch...@sers.ox.ac.uk Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services | F: (01865) 242287