[Kea-users] statistics-get - computation of # of current leases per pool?

Thorsten Glaser tglaser at b1-systems.de
Tue Nov 3 17:43:11 UTC 2026


Hi,

I’m the one who cobbled together that CheckMK plugin.

I do have some questions. Some, we can probably figure out with
some debugging, but:

In the original example posted…

        "subnet[80].pool[0].assigned-addresses" : [
           [
              9,
              "2026-10-29 08:17:47.707752"
           ],
           [
              0,
              "2026-10-29 08:17:47.707562"
           ]
        ]

… this JSONArray has *two* elements, not just one.

What is the meaning of this? What does this signify, semantically?

On one of the systems of my customer, I see:

    "subnet[3].pool[0].assigned-addresses": [
      [ 
        0,
        "2026-10-22 19:25:43.664495"
      ],
      [ 
        1,
        "2026-10-22 13:25:18.506467"
      ],
      [ 
        0,
        "2026-10-20 07:15:56.600543"
      ],
      [ 
        0,
        "2026-10-20 07:15:56.599290"
      ]
    ],

So here, this is clearly historic data and I just take the first
subelement only.

And: the docs say…

| If not configured, pool-id defaults to 0. The statistics related to
| pool ID 0 refer to all the statistics of all the pools that have an
| unconfigured pool-id.

But the OP seems to have reservations *outside* of the pools, within
the subnet, but not in any pools. So why are these seemingly also
counted to pool#0?

Thanks in advance,
//Thorsten

PS: Please Cc me, I’ve turned general mail delivery off, but can
    look into the web archive from time to time.
-- 
Thorsten Glaser
Linux / Unix Developer
Tel.: +49 160 91168501
E-Mail: tglaser at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / https://www.b1-systems.de/
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt, HRB 3537


More information about the Kea-users mailing list