<div dir="ltr">hi Slawek Figiel,<div><br></div><div>Thank you so much! as you guided, I installed libdhcp_stat_cmds.s and libdhcp_lease_cmds.so. <br>When I issued: kea-shell --host localhost --port 8099 stat-lease6-get. This command was just hanged over there, no any response. </div><div>but when I issued:<br>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">curl -X POST -H 'Content-Type: application/json' \</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><span class="gmail-Apple-converted-space"> </span>-d '{</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><span class="gmail-Apple-converted-space"> </span>"command": "lease6-get-all",</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><span class="gmail-Apple-converted-space"> </span>"service": ["dhcp6"]</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><span class="gmail-Apple-converted-space"> </span>}' \</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><span class="gmail-Apple-converted-space"> </span><a href="http://localhost:8099/">http://localhost:8099/</a></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">I can got some information of lease. but I still can not find the used information in my Stork dashboard subnets page. </p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">I only could see the following:</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">fdbd:dc61:199:ff::12/127 NAs total=1 <br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">in the Statistics page, the used Addresses and declined Addresses both zero too.</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue""><br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 18, 2024 at 8:00 PM <<a href="mailto:stork-users-request@lists.isc.org">stork-users-request@lists.isc.org</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">Send Stork-users mailing list submissions to<br>
<a href="mailto:stork-users@lists.isc.org" target="_blank">stork-users@lists.isc.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.isc.org/mailman/listinfo/stork-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:stork-users-request@lists.isc.org" target="_blank">stork-users-request@lists.isc.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:stork-users-owner@lists.isc.org" target="_blank">stork-users-owner@lists.isc.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Stork-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: stork help: the used percentage always zero (stork 1.15)<br>
(Jack Wang)<br>
2. Re: stork help: the used percentage always zero (stork 1.15)<br>
(Slawek Figiel)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 17 Apr 2024 10:42:45 -0700<br>
From: Jack Wang <<a href="mailto:wangjiajie917@gmail.com" target="_blank">wangjiajie917@gmail.com</a>><br>
To: Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>><br>
Cc: <a href="mailto:stork-users@lists.isc.org" target="_blank">stork-users@lists.isc.org</a><br>
Subject: Re: [stork-users] stork help: the used percentage always zero<br>
(stork 1.15)<br>
Message-ID:<br>
<CAA44==<a href="mailto:i0a8U1wYPQZws1h%2BW1kAuYp79xwga-vAap_Q-8h15e2Q@mail.gmail.com" target="_blank">i0a8U1wYPQZws1h+W1kAuYp79xwga-vAap_Q-8h15e2Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
hi Darren,<br>
<br>
Thank you so much for answering my question. But I do have<br>
libdhcp_stat_cmds.so be configured and the file<br>
/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so exists there.<br>
but I'm not sure if it was loaded, but I guess it should have been loaded<br>
since no error logs there.<br>
"hooks-libraries":<br>
[<br>
{<br>
"library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so"<br>
},<br>
{<br>
"library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so"<br>
},<br>
{<br>
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"<br>
}<br>
]<br>
<br>
Best regards,<br>
Jack<br>
<br>
On Wed, Apr 17, 2024 at 2:56?AM Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>><br>
wrote:<br>
<br>
> Jack,<br>
><br>
> I can't remember for sure, but you may need to load the stat_cmds hook<br>
> in Kea before the statistics will be available in Stork:<br>
><br>
> <a href="https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics</a><br>
> Perhaps that isn't loaded?<br>
><br>
> Thank you,<br>
> Darren Ankney<br>
><br>
> On Mon, Apr 15, 2024 at 1:52?PM Jack Wang <<a href="mailto:wangjiajie917@gmail.com" target="_blank">wangjiajie917@gmail.com</a>> wrote:<br>
> ><br>
> > Dear Stork Support Team,<br>
> ><br>
> > My Stork version is 1.15. My Kea DHCP and Ctl were running in Docker<br>
> containers, and I installed Stork Server well, I also installed Stork Agent<br>
> from Stork webpage: Services>Machines stork-install-agent.sh. Also there<br>
> were no error logs.<br>
> > In the Stork dashboard I can find Subnets data, but the used percentage<br>
> is always zero. Actually I have traffic and it should not always be zero.<br>
> So how can I debug this, which log should I check.<br>
> ><br>
> > Thanks<br>
> > Jack<br>
> ><br>
> > --<br>
> > Stork-users mailing list<br>
> > <a href="mailto:Stork-users@lists.isc.org" target="_blank">Stork-users@lists.isc.org</a><br>
> > <a href="https://lists.isc.org/mailman/listinfo/stork-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.isc.org/pipermail/stork-users/attachments/20240417/cf7b184b/attachment-0001.htm" rel="noreferrer" target="_blank">https://lists.isc.org/pipermail/stork-users/attachments/20240417/cf7b184b/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 18 Apr 2024 12:26:27 +0200<br>
From: Slawek Figiel <<a href="mailto:slawek@isc.org" target="_blank">slawek@isc.org</a>><br>
To: <a href="mailto:stork-users@lists.isc.org" target="_blank">stork-users@lists.isc.org</a><br>
Subject: Re: [stork-users] stork help: the used percentage always zero<br>
(stork 1.15)<br>
Message-ID: <<a href="mailto:95db07c6-b0cc-4604-b020-b4ec25f10ebb@isc.org" target="_blank">95db07c6-b0cc-4604-b020-b4ec25f10ebb@isc.org</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Hello Jack!<br>
<br>
Thank you for the contact.<br>
<br>
The utilization is calculated based on the statistics returned by Kea. <br>
The `stat-lease4-get` and `stat-lease6-get` commands fetch the data.<br>
<br>
If you see no data, it means one of the following problems:<br>
<br>
1. Strok agent is not authorized. Please go to the machine page, switch <br>
to the "Unauthorized" tab, and examine if there are any entries. If yes, <br>
please authorize them.<br>
2. Check the connectivity errors. Go to the machine page. Are there any <br>
errors listed in the "Error" column? Next, go to the application page. <br>
Is there any error message displayed?<br>
3. Look through the agent and server logs. Are there any errors reported?<br>
4. Send the `stat-lease4-get` (and/or `stat-lease6-get`) command to Kea <br>
using the `kea-shell` utility. Does it return the proper values?<br>
5. Check if Stork monitors the proper DHCP server. Perhaps the <br>
connection sockets are improperly configured? Or maybe you ran multiple <br>
Kea CA instances or Kea DHCP servers?<br>
<br>
I'll wait for your response.<br>
Regards,<br>
Slawek Figiel<br>
<br>
On 17/04/2024 19:42, Jack Wang wrote:<br>
> hi Darren,<br>
> <br>
> Thank you so much for answering my question. But I do have <br>
> libdhcp_stat_cmds.so be configured and the file <br>
> /usr/local/lib/kea/hooks/libdhcp_stat_cmds.so exists there.<br>
> but I'm not sure if it was loaded, but I guess it should have been <br>
> loaded since no error logs there.<br>
> ?"hooks-libraries":<br>
> [<br>
> ? ? ? {<br>
> ? ? ? ? "library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so"<br>
> ? ? ? },<br>
> ? ? ? {<br>
> ? ? ? ? ?"library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so"<br>
> ? ? ? },<br>
> ? ? ? {<br>
> ? ? ? ? ? "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"<br>
> ? ? ? }<br>
> ? ? ]<br>
> <br>
> Best regards,<br>
> Jack<br>
> <br>
> On Wed, Apr 17, 2024 at 2:56?AM Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a> <br>
> <mailto:<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>>> wrote:<br>
> <br>
> Jack,<br>
> <br>
> I can't remember for sure, but you may need to load the stat_cmds hook<br>
> in Kea before the statistics will be available in Stork:<br>
> <a href="https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics</a> <<a href="https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics</a>><br>
> Perhaps that isn't loaded?<br>
> <br>
> Thank you,<br>
> Darren Ankney<br>
> <br>
> On Mon, Apr 15, 2024 at 1:52?PM Jack Wang <<a href="mailto:wangjiajie917@gmail.com" target="_blank">wangjiajie917@gmail.com</a><br>
> <mailto:<a href="mailto:wangjiajie917@gmail.com" target="_blank">wangjiajie917@gmail.com</a>>> wrote:<br>
> ><br>
> > Dear Stork Support Team,<br>
> ><br>
> > My Stork version is 1.15. My Kea DHCP and Ctl were running in<br>
> Docker containers, and I installed Stork Server well, I also<br>
> installed Stork Agent from Stork webpage: Services>Machines<br>
> stork-install-agent.sh. Also there were no error logs.<br>
> > In the Stork dashboard I can find Subnets data, but the used<br>
> percentage is always zero. Actually I have traffic and it should not<br>
> always be zero. So how can I debug this, which log should I check.<br>
> ><br>
> > Thanks<br>
> > Jack<br>
> ><br>
> > --<br>
> > Stork-users mailing list<br>
> > <a href="mailto:Stork-users@lists.isc.org" target="_blank">Stork-users@lists.isc.org</a> <mailto:<a href="mailto:Stork-users@lists.isc.org" target="_blank">Stork-users@lists.isc.org</a>><br>
> > <a href="https://lists.isc.org/mailman/listinfo/stork-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
> <<a href="https://lists.isc.org/mailman/listinfo/stork-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a>><br>
> <br>
> <br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
Stork-users mailing list<br>
<a href="mailto:Stork-users@lists.isc.org" target="_blank">Stork-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/stork-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Stork-users Digest, Vol 47, Issue 5<br>
******************************************<br>
</blockquote></div>