<div dir="ltr"><br><div>FWIW we also primarily use Monit to keep tabs on the Kea daemons in our environment. Because we're using MySQL backends, the Monit watchdog can safely restart the daemon if it crashes or becomes unresponsive.</div><div><br></div><div>There is an external watchdog service we use to check the process table for the daemon as well, but that sees almost no usage because Monit does the job so well.</div><div><br></div><div>cheers,</div><div>Klaus</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 27, 2022 at 12:42 PM Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</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>I had a thought regarding how you could implement some sort of monitoring solution for DHCPv6.  I don’t think you could implement a client but it should be possible to pretend to be a relay agent to perform a monitoring function for DHCPv6 like I described for DHCPv4.  I think that is the way that dhcperf functions depending on the options chosen…<br><div><br><blockquote type="cite"><div>On Dec 27, 2022, at 3:35 PM, Eric Graham <<a href="mailto:eric.graham@vantagepnt.com" target="_blank">eric.graham@vantagepnt.com</a>> wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)">One way to monitor is with Stork. It won't alert you, but it does have an API that collects events such as failure to communicate with a daemon using the Kea control agent, or HA state changed. One can poll that API and emit alerts based on the interesting events. Stork agents also have Prometheus built in, so you can have your Prometheus server send alerts on some conditions. For example, alert if a subnet is 80% full, 20% lower than average, has only been decreasing in count for x minutes, etc. (disclaimer, I haven't done this yet).</span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><br></span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)">I would be much more comfortable with an actual DHCP client, though, like Darren described. One could use dhcperf, or something like scapy. But I am also interested in a better monitoring solution.<br></span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br></div><div id="m_6064147745051514848Signature"><div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><b>Eric Graham</b></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><i>DevOps Specialist</i></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><span style="font-size:8pt">Direct: 605.990.1859</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:8pt;background-color:rgba(0,0,0,0)"></span><i><br></i></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:8pt;background-color:rgba(0,0,0,0)"></span></i><a href="mailto:eric.graham@vantagepnt.com" title="mailto:eric.graham@vantagepnt.com" target="_blank"><span style="font-size:8pt">Eric.Graham@vantagepnt.com</span></a><i><br></i></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><i><span id="m_6064147745051514848cid:773adccf-ba4e-4d90-9339-40e19fa5a1af"><Outlook-c1ooi2ao.png></span><br></i></div></div></div></div><div id="m_6064147745051514848appendonsend" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div><hr style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline-block;width:654.625px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"></span><div id="m_6064147745051514848divRplyFwdMsg" dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><font face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b><span> </span>Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org" target="_blank">kea-users-bounces@lists.isc.org</a>> on behalf of Stefan G. Weichinger <<a href="mailto:lists@xunil.at" target="_blank">lists@xunil.at</a>><br><b>Sent:</b><span> </span>Tuesday, December 27, 2022 12:10 AM<br><b>To:</b><span> </span><a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a><span> </span><<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>><br><b>Subject:</b><span> </span>[Kea-users] Monitoring a Kea cluster</font><div> </div></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><font size="2"><span style="font-size:11pt"><div>CAUTION: This email originated outside the organization. Do not click any links or attachments unless you have verified the sender.<br><br>As I upgraded my isc-kea cluster to Debian 11.6 last week and rebooted<br>the 2 nodes we noticed that initially there were no DHCP-leases offered<br>until I restarted the isc-kea-dhcp4 service (on the primary node of the<br>cluster).<br><br>Maybe a one time issue, I don't know.<br><br>-<br><br>In consequence I´d like to monitor the DHCP-services somehow.<br><br>I don't run a "real" monitoring like Nagios or Icinga at that site, but<br>use "monit" for basic monitoring ...<br><br>I added a check to monitor the isc-kea-dhcp4 service itself: does it<br>run, does it behave, if not, restart it.<br><br>And I added a check to monitor the timestamp of the leases file: if not<br>changed for N minutes, alert me.<br><br>That is very basic and not even fully OK IMO: the leases file gets<br>rotated ... etc etc<br><br>I browsed for a check tool and found "dhcping". So far I wasn't able to<br>get a working reply out of that tool :-( ...<br><br>How do you monitor Kea, are there any recommended ways of doing that?<br>--<br>ISC funds the development of this software with paid support subscriptions. Contact us at<a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a><span> </span>for more information.<br><br>To unsubscribe visit<span> </span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br><br>Kea-users mailing list<br><a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br></div></span></font></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">--<span> </span></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">ISC funds the development of this software with paid support subscriptions. Contact us at<span> </span></span><a href="https://www.isc.org/contact/" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://www.isc.org/contact/</a><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"><span> </span>for more information.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">To unsubscribe visit<span> </span></span><a href="https://lists.isc.org/mailman/listinfo/kea-users" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Kea-users mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="mailto:Kea-users@lists.isc.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">Kea-users@lists.isc.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="https://lists.isc.org/mailman/listinfo/kea-users" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a></div></blockquote></div><br></div>-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>