Sha256: cab8a273f4a41d027264a5290f34f53f9dfe040deecf07764576f013e17d6578
Contents?: true
Size: 977 Bytes
Versions: 4
Compression:
Stored size: 977 Bytes
Contents
#! /usr/bin/env ruby # # metrics-cpu-interrupts # # DESCRIPTION: # # OUTPUT: # metric data # # PLATFORMS: # Linux # # DEPENDENCIES: # gem: sensu-plugin # # USAGE: # # NOTES: # # LICENSE: # Zubov Yuri <yury.zubau@gmail.com> sponsored by Actility, https://www.actility.com # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # require 'sensu-plugin/metric/cli' require 'sensu-plugins-cpu-checks' require 'socket' # # CPU Graphite # class MetricsCPUInterrupts < Sensu::Plugin::Metric::CLI::Graphite include SensuPluginsCpuChecks::CommonInterrupts option :scheme, description: 'Metric naming scheme, text to prepend to metric', short: '-s SCHEME', long: '--scheme SCHEME', default: "#{Socket.gethostname}.interrupts" option :proc_path, long: '--proc-path /proc', proc: proc(&:to_s), default: '/proc' def run output_metrics('interrupts') ok end end
Version data entries
4 entries across 4 versions & 1 rubygems