[root@test bin]# /opt/sensu/embedded/bin/ruby handler-purge-stale-results.rb -s 3d
/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:230:in `parse_options': invalid option: -s (OptionParser::InvalidOption)
from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.0.1/lib/sensu-handler.rb:18:in `initialize'
from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.0.1/lib/sensu-handler.rb:80:in `new'
from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.0.1/lib/sensu-handler.rb:80:in `block in <class:Handler>'
handler-purge-stale-results.rb:34:in `<class:HandlerPurgeStaleResults>': undefined local variable or method `required' for HandlerPurgeStaleResults:Class (NameError)
Did you mean? require
from handler-purge-stale-results.rb:13:in `<main>'
I'd include some expected output here, but since we're not able to run the check successfully, we don't have any to provide.
We've recently encountered an error when running a check using
handler-purge-stale-results.rb
. It appears as the following:Something that's perhaps a bit more readable:
I'd include some expected output here, but since we're not able to run the check successfully, we don't have any to provide.