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

metrics-sockstat.rb is broken in 5.0.0 #131

Closed
rwky opened this issue Jan 26, 2020 · 3 comments · May be fixed by #141
Closed

metrics-sockstat.rb is broken in 5.0.0 #131

rwky opened this issue Jan 26, 2020 · 3 comments · May be fixed by #141

Comments

@rwky
Copy link

rwky commented Jan 26, 2020

Throws an error

 /opt/sensu/embedded/bin/metrics-sockstat.rb 
/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-5.0.0/bin/metrics-sockstat.rb:38:in `<class:MetricsSockstat>': uninitialized constant MetricsSockstat::Socket (NameError)
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-network-checks-5.0.0/bin/metrics-sockstat.rb:33:in `<top (required)>'
        from /opt/sensu/embedded/bin/metrics-sockstat.rb:23:in `load'
        from /opt/sensu/embedded/bin/metrics-sockstat.rb:23:in `<main>'

Previous versions work fine.

@rwky rwky changed the title metricks-sockstat.rb is broken in 5.0.0 metrics-sockstat.rb is broken in 5.0.0 Jan 26, 2020
@nixwiz
Copy link
Contributor

nixwiz commented Jan 27, 2020

@asanchez1978 this was from your commit 6c7f983 that was just rolled out in this release.

@sensu-discourse
Copy link

This issue has been mentioned on Sensu Community. There might be relevant details there:

https://discourse.sensu.io/t/class-metricssockstat-uninitialized-constant-metricssockstat-socket-nameerror/1634/2

@soichih
Copy link

soichih commented Feb 21, 2020

For anyone trying to figure out how to downgrade from 5.0.0 to 4.0.0, here is what I did

/opt/sensu/embedded/bin/gem uninstall sensu-plugins-network-checks 
/opt/sensu/embedded/bin/gem install sensu-plugins-network-checks -v 4.0.0

abrom added a commit to abrom/sensu-plugins-network-checks that referenced this issue Feb 25, 2021
@rwky rwky closed this as completed Apr 18, 2024
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.

4 participants