Comments (4)
It looks like there were some breaking changes to the API in 5.0.30
, I just upgraded my controller and can replicate the issue you mention. I'll work on adding support for >=5.0.30
from omada_exporter.
Hey, thanks for raising this issue! The image is currently built for arm64
, amd64
and armv7
, I'm having no issues running the image on a RPI4 on my end (albeit on kubernetes)
Could you maybe send over some more details on how you're running the container to help me recreate it on my end (docker run, docker-compose etc.)? Thanks!
from omada_exporter.
ok, weird, I swear dockerhub was only showing amd64 tags yesterday. So the arch is probably not the issue here after all...
I have played around with the environment variables and have managed to get rid of the panic. It seems that if the protocol is omitted from OMADA_HOST or if an IP address is used, or if an incorrect port is used, then it causes the panic and signal SIGSEGV (possibly some better input handling wouldn't go amiss). With better formatting of the environment variables, I now get the following errors repeating in the log:
time="2022-01-27T23:49:17Z" level=info msg="Not logged in, logging in with user: prometheus..."
time="2022-01-27T23:49:17Z" level=error msg="Failed to login: %!s()"
time="2022-01-27T23:49:17Z" level=error msg="Failed to login: %!s()"
So this would appear to be a completely different issue now.
I'm using the following docker-compose config:
version: "2.4"
services:
...
omada-exporter:
container_name: omada-exporter
image: chhaley/omada_exporter:latest
restart: unless-stopped
depends_on:
- "omada-controller"
#ports:
# # Port mapping not needed as only used by influxdb/telegraf.
# - "9202:9202"
env_file:
- .omada-exporter.env
The .omada-exporter.env file contains:
OMADA_HOST=https://omada-controller:8043
OMADA_USER=prometheus
OMADA_PASS=x
OMADA_SITE=Default
OMADA_EXPORTER_PORT=9202
OMADA_INSECURE=true
Username and password double-checked. I've also checked from other containers that they can gets a response from https://omada-controller:8043/api/v2/loginStatus
I'm running "mbentley/omada-controller:latest" on the same docker network and it's reporting version "5.0.30" in the web GUI.
The logs on the omada controller don't record the failed logins from the omada-exporter container, whereas they do record a manually-generated failed login. So I'm wondering if the omada-exporter login request is not compatible with the latest version of the controller...?
Any ideas?
from omada_exporter.
Confirmed resolved, I'm now able to get metrics. Thanks. Although I needed to update the docker image to 'chhaley/omada-exporter' instead of 'chhaley/omada_exporter'.
from omada_exporter.
Related Issues (20)
- There are so many issues HOT 1
- Exporter unable to collect information on 10GBaseT ports HOT 5
- Duplicated metrics issues HOT 2
- Add new client traffic metrics HOT 4
- Add support for Gateway's HOT 3
- Controller supported versions HOT 1
- Does Not Get Ports For Router HOT 1
- Cert unknow authority HOT 6
- Create pipeline for Grafana.com dashboard
- omada_client_connected_total changed in latest omada version HOT 3
- Omada Open API Support HOT 4
- exporter started crashing with 0.11.0 HOT 2
- error unsupported protocol scheme when starting the container
- stange errors HOT 2
- Runtime error: slice bounds out of range HOT 2
- Dashboard does not display data for devices if they are renamed
- Upgraded Omada Controller and Omada Exporter - Exporter No Longer Runs HOT 14
- [Feature Request] Option to filter collectors for multiple requests
- App failed to run HOT 2
- Multiple site's HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omada_exporter.