Console: Bandwidth usage value not actual when not capturing

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
jpka
Posts: 2
Joined: Mon May 13, 2024 10:06 pm

Console: Bandwidth usage value not actual when not capturing

Post by jpka »

Hello.
I search for capturing health watch. I have just one monitor currently. I now use console kB/S value (via wget / grep in script), it is work well. But when so harsh network condition occur so capturing interrupts (at evenings), or when i manually stop it via Change state, this value stuck for previous one. Similar like viewtopic.php?t=33239.
It is possible to get actual current traffic?
Also, some sort of decoder errors like lost/broken frames/packets, is possible to read out?
Thanks!
jpka
Posts: 2
Joined: Mon May 13, 2024 10:06 pm

Re: Console: Bandwidth usage value not actual when not capturing

Post by jpka »

I still did not found it. And with new version 1.36.35 arrives, i notice that console kB/S value is not representative anymore, even when no WAN jams. It randomly rises 1.5 to 1.9 of real traffic, then randomly restores to real precise value. Because this value is just FYI/approx, i am do not feel i need to bug report. But still i need to search ways for capturing health monitoring.
Recently i found myself, that as simple as

Code: Select all

iptables -I INPUT -s ip.ad.d.r -j ACCEPT
(in addition to normal wideband accepting rule already exist), gives us traffic counter, which can be used with bash script, like

Code: Select all

octets=$(iptables -nvxL INPUT | grep "ip.ad.d.r" | awk '{print $2}')
I found that this bandwidth monitor is effective and precision enough.
Thanks Zoneminder authors for such a high quality software, it behaves just fine.
Post Reply