<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr">On Fri, Dec 21, 2018 at 9:44 AM DUPALUT, Benjamin <<a href="mailto:benjamin.dupalut@esiee.fr">benjamin.dupalut@esiee.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-family:georgia,serif">Hello all,</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I want to monitor the percentage of use for some of my DHCP pools. <br></div><div><br></div><div><div style="font-family:georgia,serif">I intended to write a script who would have parsed dhcpd.leases but i found out that my failover dhcp servers doesn't have the same active leases in their dhcpd.leases files. Is this the expected behavior or are my servers wrongly configured ?</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I cannot find clear documentations about this topic.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Thanks in advance for your help.<br></div></div><div style="font-family:georgia,serif"><br clear="all"></div><div><div dir="ltr" class="gmail-m_-8750868873537016943gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font face="georgia, serif">Cordialement,</font></div><div dir="ltr" style="font-size:12.8px"><b><font face="georgia, serif"><br></font></b></div><div dir="ltr" style="font-size:12.8px"><font face="georgia, serif"><b>Benjamin Dupalut</b><br>Ingénieur système et réseau</font></div><div dir="ltr" style="font-size:12.8px"><font face="georgia, serif">Service Informatique, Télécommunications, Audiovisuel et Reprographie (SITAR)<br>ESIEE Paris<br>2 bd Blaise Pascal - 93162 Noisy-le-Grand Cedex<br>T : +33 1 45 92 66 17<br><a href="mailto:benjamin.dupalut@esiee.fr" style="color:rgb(17,85,204)" target="_blank">benjamin.dupalut@esiee.fr</a><br></font></div><font style="font-size:12.8px" face="georgia, serif" color="#990000"><a href="http://www.esiee.fr/" style="color:rgb(17,85,204)" target="_blank">www.esiee.fr</a> / <a href="http://www.cci-paris-idf.fr/" style="color:rgb(17,85,204)" target="_blank">www.cci-paris-idf.fr</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></blockquote><div><br></div><div>New leases are added to the end of the lease file.  Only occasionally is the whole file rewritten.  That is for performance reasons.  The latest lease info should match between the primary and failover, older info and the order of the entries will not be the same.</div><div><br></div><div>But I would recommend using SNMP:</div><div><a href="https://www.isc.org/free-tools-and-resources-for-isc-dhcp/">https://www.isc.org/free-tools-and-resources-for-isc-dhcp/</a><br></div><div><div>ISC DHCP SNMP pool tracker</div><div>dhcpd-snmp is an extension for the Net-SNMP agent and the ISC DHCP server. It allows you to monitor and track the address usage of your dynamic IP address pools through SNMP. On Github.</div></div><div><br></div><div>-- </div><div>Bob Harold</div><div><br></div></div></div></div></div>