sensu-plugins / sensu-plugins-disk-checks

This plugin provides native disk instrumentation for monitoring and metrics collection, including: health, usage, and various metrics.
http://sensu-plugins.io
MIT License
27 stars 63 forks source link

Check failed to run: The parameter is incorrect - GetVolumeInformation - Windows #80

Closed addy071 closed 7 years ago

addy071 commented 7 years ago

Hi!

I am using sensu-plugin og Windows platform (2008 R2 and 2012 R2 servers) and I keep receiving following error several times a day:

_Check failed to run: The parameter is incorrect. - GetVolumeInformation, ["C:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sys-filesystem-1.1.7/lib/sys/windows/sys/filesystem.rb:209:in block in mounts'", "C:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sys-filesystem-1.1.7/lib/sys/windows/sys/filesystem.rb:181:ineach'", "C:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sys-filesystem-1.1.7/lib/sys/windows/sys/filesystem.rb:181:in mounts'", "C:/opt/sensu/plugins/check-windows-disk.rb:121:infsmounts'", "C:/opt/sensu/plugins/check-windows-disk.rb:206:in run'", "C:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.1.0/lib/sensu-plugin/cli.rb:58:inblock in '"]

Sometimes error disapears in severel minutes by it self, but other times I have to restart service. In some cases error is there for an hour even I ran restart... I would say that error apears on 5% of monitored hosts, but it is kind of annoying when we are monitoring ca. 300 hosts and when list of hosts affected by this error is continiously changing.

I couldn't find a pattern to reporduce the error.

I am running sensu client 1.0. and lates versions of sys-filesystem, sensu-plugin and ffi.

Any suggestions/help would be appreciated.

Regards, adi

majormoses commented 7 years ago

@addi071 can you give me the full command you are running and what version of the plugin you have installed?

addy071 commented 7 years ago

Hi!

The command I am running is as following: "command": "C:/opt/sensu/embedded/bin/ruby.exe C:/opt/sensu/plugins/check-windows-disk.rb"

Plugin version is 2.1.0.

Tnx. adi

majormoses commented 7 years ago

Looks like this is the wrong repo and you should open against here: https://github.com/sensu-plugins/sensu-plugins-windows

addy071 commented 7 years ago

My bad! Sorry and thank you.

Regards, Adi