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

Failed to scrape content with empty command match and no metrics output #4

Open
liam-ng opened this issue Jun 3, 2024 · 2 comments

Comments

@liam-ng
Copy link

liam-ng commented Jun 3, 2024

Hello team,
Did anyone run into the same issue? could anyone share some insight how to troubleshoot this?
Thank you all in advance!

Error Message / Output:

Only aruba_up gauge is scraped after 15 minutes
aruba_exporter metrics output.txt

Many empty command match:, ran commands every 5 minutes or so, and finally timeout.
aruba_exporter service status.txt

Config file

./aruba_exporter -config.file=config.yaml


level: debug
timeout: 180
batch_size: 20000
username: operator
password: P@ssw0rd!
#key_file: /path/to/key

devices:

  • host: 192.168.90.15

features:
system: true
environment: false
interfaces: true
optics: false
routes: false
wireless: false

Hardware-wise

  • Vendor files are used for my offline system using cmd go mod vendor & go build
  • Tested on aos-cx OVA and Aruba 8100 switch, same issues

Update

  • Tried re-creating vendor mod after mod clean -cache and -modcache, no luck

  • Tried Go version 1.22.3 & 1.19, no luck

  • The go mod module.txt looks good to me.

  • Tried copying $GOPATH/pkg/mod (mod cache) to offline server and run go run main.go -mod=mod/vendor, no luck with same undefined error message

  • Tried built aruba_exporter with internet access, got the same file size and same behaviour

  • Tried go run -mod=vendor ./main.go -config.file=config.yml on both online & offline environment, with or without -mod flag. Here's the error message/output:

# command-line-arguments
./main.go:75:17: undefined: defvicesForConfig
./main.go:156:7: undefined: newArubaCollector

Is it related to the issues?

@liam-ng liam-ng changed the title Failed to scrape content and unusually slow Failed to scrape content with empty command match and no metrics output Jun 5, 2024
@slashdoom
Copy link
Owner

Was your main.go modified? In the source, line 75 is whitespace and line 76 is devices, err = devicesForConfig(c) but it looks like there is a typo in yours, defvicesForConfig.

newArubaCollector comes from aruba_collector.go

@liam-ng
Copy link
Author

liam-ng commented Aug 21, 2024

Thank you so much for the response.
I revisited the issue today, the main.go is not modified, sorry for the typo:

# command-line-arguments
./main.go:75:17: undefined: devicesForConfig
./main.go:156:7: undefined: newArubaCollector

I downloaded and re-built the aruba_exporter again.
It has the same issue with empty command match.
From the Aruba 8100 log, I can see the operator user from my config.yml logged in and out when I go to http://:9909/metrics

Please let me know if there is anything I should try, thank you!

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