johnson442 / custom-zyxel-firmware

GNU General Public License v2.0
25 stars 5 forks source link

Built in stats page, stats tab not showing statistics. #2

Closed abclution closed 2 years ago

abclution commented 5 years ago

VMG-1312-B10A in bridge (actually only using it as a modem, Mikrotik device doing the PPPOE connection) mode, also using Annex M

Current Firmware Version: V17-jumbo-tel-x6-stats-cmd

The bonus stat server you included, at least on of its pages is not quite updating properly for me. Stats tab looks like this, other pages seem to be updating correctly

image

My Zyxel Stat page looks like this

image

Haven't rebooted yet but am going to try it just in case

abclution commented 5 years ago

Ok, a reboot didnt clear anything. I am attaching the /data/stats file in case there is any clues there. stats.txt

abclution commented 5 years ago

Also, no idea how to access the /data/boot-cmds.sh for updating or editing.

In telnet, there is no filesystem access, ftp shows connectivity to the /mnt folder but no ability the cwd to any other folder.

Sorry to be annoying.

johnson442 commented 5 years ago

Also, no idea how to access the /data/boot-cmds.sh for updating or editing.

In telnet, there is no filesystem access, ftp shows connectivity to the /mnt folder but no ability the cwd to any other folder.

Sorry to be annoying.

Not at all!

Editing the /data/boot-cmds.sh requires gaining full busybox shell, if logged in with admin account via telnet/ssh: xtm ; sh or xtm & sh

Then cd around and edit with vi.

Thanks for the stats.txt, have only tested on a VDSL line, so probably a difference in length or order causing issue, will look into it now.

Edit: Issue was a new empty line with ADSL stats that wasnt dealt with properly, you can edit yourself on a live modem by gaining shell as above:

cd /var/tmp/stats
vi index.html

2 lines need adding, see https://github.com/johnson442/custom-zyxel-firmware/commit/8af834d144d5e6e6c28720076ec9765c6defd483 for reference.

If its easier you could download index.html and place on usb stick then: cp /mnt/usb1_1/index.html /var/tmp/stats

Will not survive a reboot, but would be great if you could test before I rebuild images.

johnson442 commented 5 years ago

Heres a binary with the changes, tested to boot and have correct features: 1312-B10A-17-jumbo-tel-x6-stats1.1-cmd.zip

abclution commented 5 years ago

Hi, I am trying out the new firmware will report in a couple hours what works and doesn't.

Also, regarding testing the changes before building the firmware, sure, I'm in. Had huge thunderstorms last two days so no firmware shenanigans at that time for obvious reasons. :P

johnson442 commented 5 years ago

Ace! thanks for testing.