[stork-users] stork help: the used percentage always zero (stork 1.15)
Slawek Figiel
slawek at isc.org
Thu Apr 18 10:26:27 UTC 2024
Hello Jack!
Thank you for the contact.
The utilization is calculated based on the statistics returned by Kea.
The `stat-lease4-get` and `stat-lease6-get` commands fetch the data.
If you see no data, it means one of the following problems:
1. Strok agent is not authorized. Please go to the machine page, switch
to the "Unauthorized" tab, and examine if there are any entries. If yes,
please authorize them.
2. Check the connectivity errors. Go to the machine page. Are there any
errors listed in the "Error" column? Next, go to the application page.
Is there any error message displayed?
3. Look through the agent and server logs. Are there any errors reported?
4. Send the `stat-lease4-get` (and/or `stat-lease6-get`) command to Kea
using the `kea-shell` utility. Does it return the proper values?
5. Check if Stork monitors the proper DHCP server. Perhaps the
connection sockets are improperly configured? Or maybe you ran multiple
Kea CA instances or Kea DHCP servers?
I'll wait for your response.
Regards,
Slawek Figiel
On 17/04/2024 19:42, Jack Wang wrote:
> hi Darren,
>
> Thank you so much for answering my question. But I do have
> libdhcp_stat_cmds.so be configured and the file
> /usr/local/lib/kea/hooks/libdhcp_stat_cmds.so exists there.
> but I'm not sure if it was loaded, but I guess it should have been
> loaded since no error logs there.
> "hooks-libraries":
> [
> {
> "library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so"
> },
> {
> "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so"
> },
> {
> "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"
> }
> ]
>
> Best regards,
> Jack
>
> On Wed, Apr 17, 2024 at 2:56 AM Darren Ankney <darren.ankney at gmail.com
> <mailto:darren.ankney at gmail.com>> wrote:
>
> Jack,
>
> I can't remember for sure, but you may need to load the stat_cmds hook
> in Kea before the statistics will be available in Stork:
> https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics <https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-stat-cmds-so-statistics-commands-for-supplemental-lease-statistics>
> Perhaps that isn't loaded?
>
> Thank you,
> Darren Ankney
>
> On Mon, Apr 15, 2024 at 1:52 PM Jack Wang <wangjiajie917 at gmail.com
> <mailto:wangjiajie917 at gmail.com>> wrote:
> >
> > Dear Stork Support Team,
> >
> > My Stork version is 1.15. My Kea DHCP and Ctl were running in
> Docker containers, and I installed Stork Server well, I also
> installed Stork Agent from Stork webpage: Services>Machines
> stork-install-agent.sh. Also there were no error logs.
> > In the Stork dashboard I can find Subnets data, but the used
> percentage is always zero. Actually I have traffic and it should not
> always be zero. So how can I debug this, which log should I check.
> >
> > Thanks
> > Jack
> >
> > --
> > Stork-users mailing list
> > Stork-users at lists.isc.org <mailto:Stork-users at lists.isc.org>
> > https://lists.isc.org/mailman/listinfo/stork-users
> <https://lists.isc.org/mailman/listinfo/stork-users>
>
>
More information about the Stork-users
mailing list