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

no hostname showing for some LAN clients #22

Open
charlie-haley opened this issue Feb 7, 2022 · 0 comments
Open

no hostname showing for some LAN clients #22

charlie-haley opened this issue Feb 7, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@charlie-haley
Copy link
Owner

No description provided.

@charlie-haley charlie-haley added the bug Something isn't working label Feb 7, 2022
@charlie-haley charlie-haley changed the title no hostnames showing for LAN client no hostname showing for some LAN client Feb 7, 2022
@charlie-haley charlie-haley changed the title no hostname showing for some LAN client no hostname showing for some LAN clients Feb 7, 2022
@charlie-haley charlie-haley added this to the v0.5 milestone Apr 7, 2022
@charlie-haley charlie-haley modified the milestones: v0.5, v0.6 May 10, 2022
jfieber added a commit to jfieber/omada_exporter that referenced this issue Dec 18, 2023
The HostName client field seems somewhat unreliable in practice. Fall back on the Name field if it is absent.

Maybe a fix for charlie-haley#22
charlie-haley pushed a commit that referenced this issue Dec 18, 2023
* go fmt (whitespace changes only)

* (bug) signal level is a percent, not dBm

* Add client signal to noise ratio

* fix missing client values

The HostName client field seems somewhat unreliable in practice. Fall back on the Name field if it is absent.

Maybe a fix for #22

* add an mdocs command to emit metrics docs

This should guarantee docs matching the code, and replace the defunct metric-markdown-table.sh script.

* refresh metrics descriptions

* replace metric-markdown-table.sh with mdocs command

Remaining buglet: the version and mdocs commands shouldn’t require host, username and password arguments.

* redefine client label, add host_name label

Formerly the client metrics `client` label was populated with the hostname provided by the controller. The hostname parameter is not reliably present.

This change populates the `client` label with the name value from the controller, and moves the hostname to a separate `hostname` label.

It is not 100% clear how Omada sets the name. A best guess is:

- If the name explicitly set a name in the Omada UI, that.
- If no name is explicitly set, and a hostname has been determined, use the hostname.
- If no name is explicitly set, and no hostname has been determined, us the mac address.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant