doudou3716 2017-08-16 14:06 采纳率: 100%
浏览 27

如何通过用户ip从Icecast服务器获得带宽消耗?

everybody, I'm working on a personnal project, and I want to know the bandwitdh usage for each IP(user) connected to my server.

I want to do something like this :

IP                PORT       BandWidth       Quota       Connection_time
192.168.1.10       8000       988,478 Gb      1,000 Gb    720:01:20.956
192.168.1.12       8001       98,478 Gb       1,000 Gb    01:01:20.956
192.168.1.216      8003       9,784 Gb        1,000 Gb    00:59:25.545

Do you have an idea ?


I have many Icecast (webradio streams) on my server, and I want to know the consumption of each listeners of each radio

My main focus, is to display the bandwidth consumption of the user on its profile, and too to check if he has reached his quota or not.

  • 写回答

1条回答 默认 最新

  • dongma1666 2017-08-21 11:11
    关注

    I'd recommend parsing the Icecast access.log as it both logs the volume and duration of a connection.

    You can also use the URL-authentication hooks to log things.

    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探