[stork-users] Stork-users Digest, Vol 47, Issue 5

Jack Wang wangjiajie917 at gmail.com
Sun Apr 21 04:30:25 UTC 2024


hi Slawek Figiel,

Thank you so much! as you guided, I installed libdhcp_stat_cmds.s and
libdhcp_lease_cmds.so.
When I issued: kea-shell --host localhost --port 8099 stat-lease6-get. This
command was just hanged over there, no any response.
but when I issued:

curl -X POST -H 'Content-Type: application/json' \

    -d '{

          "command": "lease6-get-all",

          "service": ["dhcp6"]

        }' \

    http://localhost:8099/

I can got some information of lease. but I still can not find the used
information in my Stork dashboard subnets page.

I only could see the following:

fdbd:dc61:199:ff::12/127   NAs   total=1

in the Statistics page, the used Addresses and declined Addresses both zero
too.







On Thu, Apr 18, 2024 at 8:00 PM <stork-users-request at lists.isc.org> wrote:

> Send Stork-users mailing list submissions to
>         stork-users at lists.isc.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.isc.org/mailman/listinfo/stork-users
> or, via email, send a message with subject or body 'help' to
>         stork-users-request at lists.isc.org
>
> You can reach the person managing the list at
>         stork-users-owner at lists.isc.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stork-users digest..."
>
>
> Today's Topics:
>
>    1. Re: stork help: the used percentage always zero (stork 1.15)
>       (Jack Wang)
>    2. Re: stork help: the used percentage always zero (stork 1.15)
>       (Slawek Figiel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 17 Apr 2024 10:42:45 -0700
> From: Jack Wang <wangjiajie917 at gmail.com>
> To: Darren Ankney <darren.ankney at gmail.com>
> Cc: stork-users at lists.isc.org
> Subject: Re: [stork-users] stork help: the used percentage always zero
>         (stork 1.15)
> Message-ID:
>         <CAA44==
> i0a8U1wYPQZws1h+W1kAuYp79xwga-vAap_Q-8h15e2Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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>
> 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
> > Perhaps that isn't loaded?
> >
> > Thank you,
> > Darren Ankney
> >
> > On Mon, Apr 15, 2024 at 1:52?PM Jack Wang <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
> > > https://lists.isc.org/mailman/listinfo/stork-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.isc.org/pipermail/stork-users/attachments/20240417/cf7b184b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Apr 2024 12:26:27 +0200
> From: Slawek Figiel <slawek at isc.org>
> To: stork-users at lists.isc.org
> Subject: Re: [stork-users] stork help: the used percentage always zero
>         (stork 1.15)
> Message-ID: <95db07c6-b0cc-4604-b020-b4ec25f10ebb at isc.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> 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>
> >
> >
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> Stork-users mailing list
> Stork-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/stork-users
>
>
> ------------------------------
>
> End of Stork-users Digest, Vol 47, Issue 5
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20240421/537f809d/attachment-0001.htm>


More information about the Stork-users mailing list