You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using v2.5.1 of check-smart-status.rb, when running it with the example json it's failing in line 219.
sudo ./check-smart-status.rb -j ~/smart.json Check failed to run: undefined method name' for #Disk:0x0000000253d8b8, ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:219:in block in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:206:in each'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:206:in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.3.0/lib/sensu-plugin/cli.rb:57:in block in class:CLI'"]`
I've found that changing #{dev.name} to #{dev.device_path} does the trick in line 219: criticals << "Overall health check failed on #{dev.name}"
Not sure if it's only something on my system or not though...
The text was updated successfully, but these errors were encountered:
vadim6
changed the title
Error running check-smart-status.rb
Error running check-smart-status.rb - undefined method `name' for #<Disk:0x0000000253d8b8>
Dec 31, 2017
The servers are all HP ProLiant SE316M1 all using an LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] Raid Controller (all Disks in JBOD Mode).
I can run smartctl -a on all disks configured in smart.json without a problem.
The Poblem also exists if i write only one disk into the json (of course the disk-id changes).
Attached is also the whole output of a smartctl -a on /dev/sda: smartctl-sda.txt
If I can provide any more information that could help to solve the problem, just let me know.
I'm using v2.5.1 of check-smart-status.rb, when running it with the example json it's failing in line 219.
sudo ./check-smart-status.rb -j ~/smart.json Check failed to run: undefined method
name' for #Disk:0x0000000253d8b8, ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:219:inblock in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:206:in
each'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-disk-checks-2.5.1/bin/check-smart-status.rb:206:inrun'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.3.0/lib/sensu-plugin/cli.rb:57:in
block in class:CLI'"]`I've found that changing #{dev.name} to #{dev.device_path} does the trick in line 219:
criticals << "Overall health check failed on #{dev.name}"
Not sure if it's only something on my system or not though...
The text was updated successfully, but these errors were encountered: