Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Started playing with this on my AX88 - some findings #1

Open
punassuming opened this issue Dec 19, 2020 · 2 comments
Open

Started playing with this on my AX88 - some findings #1

punassuming opened this issue Dec 19, 2020 · 2 comments

Comments

@punassuming
Copy link

Will be using this thread to tabulate some of the issues I have found. Great job in trying to put something like this together ( I had hacked getting node-exporter and some custom parsing in a text file, but this has a lot more info to it:

  1. opkg currently does not have python available. Had to install python3.
  2. pip also wasn't able to be installed, as the package is not python3-pip.
  3. When running the traffic export (toggle traffic analyzyer stats) to influx, I get an issue with export.py has the wrong command line variables --verify-ssl is no longer available:
usage: export_py.py [-h] -i [INPUT] [-d [DELIMITER]] [-s [SERVER]] [--port [PORT]] [-u [USER]] [-p [PASSWORD]] --dbname [DBNAME] [--create] [-m [METRICNAME]] [-tc [TIMECOLUMN]]
                    [-tf [TIMEFORMAT]] [-tz TIMEZONE] [--fieldcolumns [FIELDCOLUMNS]] [--tagcolumns [TAGCOLUMNS]] [-g] [-ssl] [-noverify] [-b BATCHSIZE]
export_py.py: error: unrecognized arguments: --verify_ssl

I updated the code in mod_trafficAnalyzer.sh

if [ "$EXTS_NOVERIFIY" = "true" ]; then
        SSL_VERIFY="--noverify"
fi
@punassuming
Copy link
Author

punassuming commented Dec 19, 2020

The wifi stats are only getting exported for one IP address.

When testing out t3, I get the following

eth7 	 64:16:66:22:84:cb 	 192.168.50.10 	 F4:F5:D8:BE:26:06
extStats_mod_wifi_clients: router.wifi.clients,host=RT-AX88U,wifi=eth7,client=64:16:66:22:84:CB,ip=192.168.50.10,hostname=F4:F5:D8:BE:26:06
14:C1:4E:1E:F2:DB
3C:8D:20:F7:AB:84
A4:77:33:FB:41:F8
58:CB:52:11:00:BC
54:60:09:9F:FE:5A
AC:AE:19:A7:87:12
64:16:66:22:84:CB,wifiBand=7 tx2_rate_pkt=19500

It looks like the hostname are getting passed a list of MAC addresses. Looking in the /opt/tmp/dhcp_clients_mac.txt file, I have three hostnames that are blank : 48:D6:D5:EC:FE:E6 192.168.50.185. Will work on fixing those.

OK, looking into the issue, it appears if you hostname is not defined, you copy in the list of all clients into the name:

            if [ -z "$ip" ]; then
                ip=$clients
            fi

            if [ -z "$host" ]; then
                host=$clients
            fi

I updated these to be just $client and it posts to Influx. Still having issues with t3, but the data is reporting.

Now I looked through the data in Influx, and I don't get any hostnames. Is it possible to get the names displayed in the client list that aren't set to DHCP static?

@corgan2222
Copy link
Owner

Sorry for the delay, but i didn't had a asus router for some time and was not around here a lot.
But im back where i have the router and want to go on with this script.
Thanks for the fixes.
Do you still using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants