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

Index out of range on start, causing crash #15

Open
micah opened this issue Jul 29, 2022 · 1 comment · May be fixed by #18
Open

Index out of range on start, causing crash #15

micah opened this issue Jul 29, 2022 · 1 comment · May be fixed by #18

Comments

@micah
Copy link
Contributor

micah commented Jul 29, 2022

Using current head of the branch, when I try to run the exporter, I get this error:

 panic: runtime error: index out of range [2] with length 1
 goroutine 26 [running]:
 github.com/r3kzi/clamav-prometheus-exporter/pkg/collector.(*Collector).Collect(0xc0001ae100, 0xc000055f60?)
         /usr/pkg/mod/github.com/r3kzi/[email protected]/pkg/collector/collector.go:139 +0x1452
 github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
         /usr/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:444 +0xfb
 created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
         /usr/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:455 +0x4c5
@padraiglennon
Copy link

I am getting this error as well when the exporter is unable to connect to the clamav service which is down


goroutine 7 [running]:
github.com/r3kzi/clamav-prometheus-exporter/pkg/collector.(*Collector).Collect(0xc0000aa100, 0xc000044760?)
        /go/pkg/mod/github.com/r3kzi/[email protected]/pkg/collector/collector.go:139 +0x1452
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
        /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:444 +0x10d
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
        /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:455 +0x4bd

@tobias-bahls tobias-bahls linked a pull request Sep 27, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants