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

Checks Intermintent fail #33

Open
alexwbaule opened this issue Feb 22, 2017 · 4 comments
Open

Checks Intermintent fail #33

alexwbaule opened this issue Feb 22, 2017 · 4 comments

Comments

@alexwbaule
Copy link

Hi Guys,

Im using All checks, and sometimes i got this error in the execution.

Output: Check failed to run: undefined method split' for nil:NilClass, ["C:/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-windows-0.0.10/bin/check-windows-ram.rb:50:in acquire_ram_usage'", "C:/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-windows-0.0.10/bin/check-windows-ram.rb:57:in run'", "C:/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.4.4/lib/sensu-plugin/cli.rb:58:in block in class:CLI'"]

Sometimes is check-windows-ram, sometimes is the check-windows-process

C:/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in new': fail: OLE initialize (RuntimeError) HRESULT error code:0x80070583 Class does not exist. from C:/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in require'
from C:/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in require' from C:/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-windows-0.0.10/bin/check-windows-process.rb:30:in <top (required)>'
from C:/opt/sensu/embedded/bin/check-windows-process.rb:22:in load' from C:/opt/sensu/embedded/bin/check-windows-process.rb:22:in

'

The error appears, and 2 or 3 checks later back to normal.

@absolutejam
Copy link
Contributor

I recall having the same issue a while back, but this is pre 1.0.

I'm going to add the whole lot of Windows checks in my env and see what results I get, to see if this is still an issue.

@alexwbaule are you still hitting these issues? Additionally, are you running the checks by explicitly specifying ruby or using the full path?

@alexwbaule
Copy link
Author

Hi @absolutejam ,

Im using the full path, but i call de .bat file. Not the Ruby.

@danb223
Copy link

danb223 commented Jan 26, 2018

@absolutejam We have just started using this module and I am also seeing the issue in the latest version of the module, happening randomly, we are using the ruby full path, I am seeing this fail on processor queue, cpu usage and ram usage checks
split' for nil:NilClass, [\"c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-windows-2.4.0/bin/check-windows-ram.rb:47:in acquire_ram_usage'", "c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-windows-2.4.0/bin/check-windows-ram.rb:54:in run'\", \"c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-plugin/cli.rb:58:in block in class:CLI'"]
ndefined method split' for nil:NilClass, [\"c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-windows-2.4.0/bin/check-windows-processor-queue-length.rb:42:in run'", "c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-plugin/cli.rb:58:in `block in class:CLI'"]

@danb223
Copy link

danb223 commented Jan 30, 2018

We have actually found out that ours appears to be tied to the same time the sensu agent restarts, which is caused by us putting a custom json file in sensu, which seems to be hitting a purge but see sensu/sensu-puppet#879, it has been fine now that the service doesn't restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants