Updated 3G statistics
-
Hi,
I've just merged a bunch of changes that make the 3G internet stick experience a bit better. I've managed to tackle various gateway related issues over the weekend as well, related to this.
We now log statistics for the Huawei sticks. I've tested with a Huawei E173u device, and as-is, the data port is on cuaU0.0 and the statistics port is cuaU0.3. I'm pretty sure there are plenty of other devices out there with different ports, maybe others could chime in.
For those that had graphs previously, I'm pretty sure I broke this. Let me know.
The RRD graphs for cellular are changed as well, these are now listed per interface, instead of 1 global.
-
This is great to hear !! Ill test as soon as my Bandwithlimit (currently gprs:( ) is back to normal.
hanD!PS: aahrg, feels like surfing in the last century… :(
-
This 3G logging or what ever is going on with 3G, is producing a lot of PHP errors. I had to get my system going again, so I stopped the process and removed the 2GB file that was /tmp/PHPerrors.log. I will post the error next time.
-
Please do, it's pretty new and needs more love obviously. It's hard to get something right on the 1st few attempts.
Needs more itteration.
-
Just keeps adding this until i kill the process that generates it.
/usr/local/bin/php -f /usr/local/bin/3gstats.php
[22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20 [22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20 [22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20 [22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20 [22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20 [22-May-2012 22:36:33 UTC] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/bin/3gstats.php on line 20
-
Fix checked in.
-
-
That looks to have fixed the issue.
Thank you. -
For those that had graphs previously, I'm pretty sure I broke this. Let me know.
Yup, they broken :) Scaling seems screwed. My rrds show max values of ca. 300 mb/sec or so. Now, give it a few years 5/6g we will be there …...
Problem seems to be the odd massive spike in values - see attached.
Also, under cellular RRD, the alphebetical default and disfunctional graph is PPP when one wants the working WAN.
PS. Those spikes might be something related to my recent testing of PPP as I just did a large download and it seems to have graphed normally (difficult to see as spikes suppress everything (need log scale :)) . Whatever the cause, the values are wildly wrong ...