Fuel plugin to deploy Sensu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

metrics-cpu-mpstat.rb 544B

12345678910111213141516171819202122
  1. #!/opt/sensu/embedded/bin/ruby
  2. #
  3. # This file was generated by RubyGems.
  4. #
  5. # The application 'sensu-plugins-cpu-checks' is installed as part of a gem, and
  6. # this file is here to facilitate running it.
  7. #
  8. require 'rubygems'
  9. version = ">= 0.a"
  10. if ARGV.first
  11. str = ARGV.first
  12. str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
  13. if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
  14. version = $1
  15. ARGV.shift
  16. end
  17. end
  18. load Gem.activate_bin_path('sensu-plugins-cpu-checks', 'metrics-cpu-mpstat.rb', version)