Akkadius / glass-isc-dhcp

Glass - ISC DHCP Server Interface
MIT License
686 stars 143 forks source link

No Device chart and cannot get OUI Count by Vendor #29

Open gcstech opened 5 years ago

gcstech commented 5 years ago

New install on Ubuntu 18.04 on the statistics page I have no device chart and nothing under Get OUI count by vendor. I have found a 500 error on the api for get_mac_oui_count_by_vendor and get this error when accessing the api directly. Cannot read property 'split' of undefined I have not found the issue with the Device Chart as of yet and also cannot search for any leases the search shows blank when using a known IP address. Any help would be greatly appreciated. Thanks

Phil

jamespoore commented 5 years ago

New install on Debian 9 and the OUI works, but no device chart. A few other bugs suggest the chart doesn't work so maybe these are to seperate issues.

Able to provide debugging info if required.

Cheers

Akkadius commented 5 years ago

I'll check into this one when I can get my environment setup for all of this again. I've never had it not work under my installs at the time

mattddowney commented 3 years ago

The chart doesn't show vendors that have less than 3 devices due the following line: https://github.com/Akkadius/glass-isc-dhcp/blob/10102a670909f30f7a471837826cf863b18ba0b0/public/templates/dhcp_statistics_page.html#L87

Quick fix is to just comment that out.

I'd be willing to submit a pull request to fix it, but it is unclear if it is intentional or not. If it is intentional, it is probably best to have it be a configurable value in glass_config.json