Closed QiuSimons closed 4 years ago
流量统计依赖 luci-app-wrtbwmon ,自行选装 但是你的脚本并没有正常工作,即使不显示也应该是 0bytes 而且设备名没有显示
流量统计依赖 luci-app-wrtbwmon ,自行选装 但是你的脚本并没有正常工作,即使不显示也应该是 0bytes 而且设备名没有显示
emm,装上了依赖还是有问题,是还有其他依赖么,我是基于官方正式版的19.07.0编译的
流量统计依赖 luci-app-wrtbwmon ,自行选装 但是你的脚本并没有正常工作,即使不显示也应该是 0bytes 而且设备名没有显示
最新的commit似乎可以工作了,但中间有个断行,很奇怪
你运行一下 cat /var/dhcp.leases
命令,你的设备名都不能获取的吗
断行也应该是设备名导致的格式问题
cat /var/dhcp.leases
如果设备是二级路由上过来的,会获取不到设备名
如果设备是二级路由上过来的,会获取不到设备名
没有二级路由,很奇怪.... 还有就是在线设备中间有个奇怪断层很迷
如果设备是二级路由上过来的,会获取不到设备名
没有二级路由,很奇怪.... 还有就是在线设备中间有个奇怪断层很迷
那就奇怪全部获取不到设备名的问题了, 那个推送中间有个断层,我也出现了。。。
for ip in $IPLIST; do
send_content=${send_content}"%0D%0A%0D%0A"" $ip "
ip_total=`usage_ip $ip`
time_down=`date +%s`
time_up=$( cat ${dir}ipAddress | grep -w $ip |awk '{print $4}' | grep -v "^$" | sort -u )
time1=$(($time_down-$time_up))
time1=`time_for_humans $time1`
send_content=${send_content}"`cat ${dir}ipAddress | grep "$ip" | awk '{print $3}' | grep -v "^$" | sort -u`%0D%0A%0D%0A"" 总计流量:$ip_total 在线 $time1"
done
代码分隔得还是有点问题
你的断行目测应该是我忘了全字匹配 10.0.0.10跟10.0.0.100读取到两行了
你的断行目测应该是我忘了全字匹配 10.0.0.10跟10.0.0.100读取到两行了
OK,fixed
谢谢,新编译的我这儿没有这个问题了
流量统计依赖 luci-app-wrtbwmon ,自行选装 但是你的脚本并没有正常工作,即使不显示也应该是 0bytes 而且设备名没有显示
您好,我安装了luci-app-wrtbwmon
后,依旧没有流量显示,请问该如何解决?
查阅系统进程,有{wrtbwmon} /bin/sh /usr/sbin/wrtbwmon -46 -f /tmp/usage.db -p /tmp/usage.htm -u /etc/wrtbwmon.user -d
,版本号为git-22.147.57852-d7e4f23
。
luci-app-wrtbwmon
版本号为git-22.174.44819-ca01673
。
这是什么bug,还是说需要什么特定的依赖啊