[4.0.x] Status-Server with FreeRADIUS-Stats4 shows no output

classic Classic list List threaded Threaded
4 messages Options
| Threaded
Open this post in threaded view
|

[4.0.x] Status-Server with FreeRADIUS-Stats4 shows no output

Milan Nikolic
I understand status works differently now, but I can not find example,
test or any information about how can one now query Status-Server.

I send packet with TLV attribute and `FreeRADIUS-Stats4-Type` is set
to `Global` but I get nothing in debug output:

```
Sun Dec  2 01:09:32 2018 : Debug : (1)  proto_radius decode packet
  Code: Status-Server
  Id: 50
  Length: 52
  Vector: 7cab2806a1a0e3a98ed3c550382ee5ef
1a  0e  00002c50 (11344)  0f 08 01 06 00 00 00 01
50  12  1f 47 67 ef 79 c8 e0 e6 8c 49 aa d5 06 bc 57 b6
Sun Dec  2 01:09:32 2018 : Debug : Resetting worker 30 cleanup timer to +0s
Sun Dec  2 01:09:32 2018 : Debug : (1)  running request
Sun Dec  2 01:09:32 2018 : Debug : (1)  Received Status-Server ID 50
Sun Dec  2 01:09:32 2018 : Debug : (1)    FreeRADIUS-Stats4-Type = Global
Sun Dec  2 01:09:32 2018 : Debug : (1)    Message-Authenticator =
0x1f4767ef79c8e0e68c49aad506bc57b6
Sun Dec  2 01:09:32 2018 : Debug : (1)  Running 'recv Status-Server'
from file /etc/raddb/sites-enabled/status
Sun Dec  2 01:09:32 2018 : Debug : (1)  recv Status-Server {
Sun Dec  2 01:09:32 2018 : Debug : (1)    ok (ok)
Sun Dec  2 01:09:32 2018 : Debug : (1)  } # recv Status-Server (ok)
Sun Dec  2 01:09:32 2018 : Debug : (1)  Sent code 2 Id 50 from
192.168.0.31:18121 to 192.168.0.10:42101 via ens33 length 0
Sun Dec  2 01:09:32 2018 : Debug : (1)  done request
Sun Dec  2 01:09:32 2018 : Debug : (1)  proto_radius encode packet
  Code: Access-Accept
  Id: 50
  Length: 20
  Vector: 0a2f9c14653b3dccaf9503e94c0d3b7f
Sun Dec  2 01:09:32 2018 : Debug : (1)  finished request.
Sun Dec  2 01:09:32 2018 : Debug : freeing request
```

I tried many combinations, and also added `stats` to many send and
recv sections, is that needed now?
Can someone please give me some pointers, I tried looking at source at
some places but it is too complicated for me to follow.


Thanks
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: [4.0.x] Status-Server with FreeRADIUS-Stats4 shows no output

Alan DeKok-2
On Dec 1, 2018, at 8:42 PM, Milan Nikolic <[hidden email]> wrote:
>
> I understand status works differently now, but I can not find example,
> test or any information about how can one now query Status-Server.

  That's because the functionality isn't done.  We've had to re-write substantial chunks of the server.  As a result, some things are gone, but new functionality has been added.

  The goal for a v4 release is to have the same features as v3, plus more.  However, we're not there yet.

> Can someone please give me some pointers, I tried looking at source at
> some places but it is too complicated for me to follow.

  Most people shouldn't be using v4.  The simple reason is that it hasn't been released yet.

  What new features do you need that made you choose v4?  Why not use the stable v3 release?

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: [4.0.x] Status-Server with FreeRADIUS-Stats4 shows no output

Milan Nikolic
Thanks,

I use v4 because I need support for redis cluster, that I believe is
still not in stable version, is there a plan for that maybe?

I wanted to use Status-Server to collect metrics from Prometheus, I
wrote exporter here
https://github.com/bvantagelimited/freeradius_exporter , but will need
to wait for that.

Milan
On Sun, Dec 2, 2018 at 2:52 AM Alan DeKok <[hidden email]> wrote:

>
> On Dec 1, 2018, at 8:42 PM, Milan Nikolic <[hidden email]> wrote:
> >
> > I understand status works differently now, but I can not find example,
> > test or any information about how can one now query Status-Server.
>
>   That's because the functionality isn't done.  We've had to re-write substantial chunks of the server.  As a result, some things are gone, but new functionality has been added.
>
>   The goal for a v4 release is to have the same features as v3, plus more.  However, we're not there yet.
>
> > Can someone please give me some pointers, I tried looking at source at
> > some places but it is too complicated for me to follow.
>
>   Most people shouldn't be using v4.  The simple reason is that it hasn't been released yet.
>
>   What new features do you need that made you choose v4?  Why not use the stable v3 release?
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: [4.0.x] Status-Server with FreeRADIUS-Stats4 shows no output

Alan DeKok-2
On Dec 1, 2018, at 8:59 PM, Milan Nikolic <[hidden email]> wrote:
>
> I use v4 because I need support for redis cluster, that I believe is
> still not in stable version, is there a plan for that maybe?

  No, unfortunately.

> I wanted to use Status-Server to collect metrics from Prometheus, I
> wrote exporter here
> https://github.com/bvantagelimited/freeradius_exporter , but will need
> to wait for that.

  Yes.

  The issue with v4 is that it's actively being re-engineered.  So things may come and go on a weekly basis.

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html