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

Metricbeat Module IIS application_pool #23605

Closed
khangcnttspkt opened this issue Jan 21, 2021 · 3 comments · Fixed by #23647
Closed

Metricbeat Module IIS application_pool #23605

khangcnttspkt opened this issue Jan 21, 2021 · 3 comments · Fixed by #23647
Assignees
Labels
Team:Integrations Label for the Integrations team

Comments

@khangcnttspkt
Copy link

khangcnttspkt commented Jan 21, 2021

  • Version: 7.10.0
  • Operating System: Windows Server 2019
    After using a few hours, I got this error:
    2021-01-20T23:16:34.281+0700 ERROR runtime/iface.go:260 recovered from panic while fetching 'iis/application_pool' for host ''. Recovering, but please report this. {"panic": "interface conversion: interface {} is nil, not float64", "stack": "github.com/elastic/beats/v7/libbeat/logp.Recover\n\t/go/src/github.com/elastic/beats/libbeat/logp/global.go:101\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:969\nruntime.panicdottypeE\n\t/usr/local/go/src/runtime/iface.go:260\ngithub.com/elastic/beats/v7/x-pack/metricbeat/module/iis/application_pool.getProcessIds\n\t/go/src/github.com/elastic/beats/x-pack/metricbeat/module/iis/application_pool/reader.go:267\ngithub.com/elastic/beats/v7/x-pack/metricbeat/module/iis/application_pool.(*Reader).mapEvents\n\t/go/src/github.com/elastic/beats/x-pack/metricbeat/module/iis/application_pool/reader.go:161\ngithub.com/elastic/beats/v7/x-pack/metricbeat/module/iis/application_pool.(*Reader).read\n\t/go/src/github.com/elastic/beats/x-pack/metricbeat/module/iis/application_pool/reader.go:151\ngithub.com/elastic/beats/v7/x-pack/metricbeat/module/iis/application_pool.(*MetricSet).Fetch\n\t/go/src/github.com/elastic/beats/x-pack/metricbeat/module/iis/application_pool/application_pool.go:76\ngithub.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).fetch\n\t/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:256\ngithub.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).startPeriodicFetching\n\t/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:234\ngithub.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).run\n\t/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:208\ngithub.com/elastic/beats/v7/metricbeat/mb/module.(*Wrapper).Start.func1\n\t/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:147"}

Restart windows service, It worked again, after a few hours error again.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 21, 2021
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Jan 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 22, 2021
@narph narph self-assigned this Jan 25, 2021
@narph
Copy link
Contributor

narph commented Jan 25, 2021

@khangcnttspkt , it looks like when trying to collect the worker process id the value is nil, we check the validity of those values and report any errors later down the line.
I have created the PR #23647 to check on any nil values earlier.
This should fix the the panic exception above.

@khangcnttspkt
Copy link
Author

@khangcnttspkt , it looks like when trying to collect the worker process id the value is nil, we check the validity of those values and report any errors later down the line.
I have created the PR #23647 to check on any nil values earlier.
This should fix the the panic exception above.

Hi @narph , thank you for your support.
I install metricbeat with windows services, how can I fix this problem?
The path to fix can't find in windows folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants