Sha256: 36f483d281e5ec44e6159d229a2df410e82088ff12de47088c0389d863e9d692
Contents?: true
Size: 969 Bytes
Versions: 4
Compression:
Stored size: 969 Bytes
Contents
#! /usr/bin/env ruby # # metrics-cpu-softirqs # # 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 MetricsCPUSoftirqs < 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}.softirqs" option :proc_path, long: '--proc-path /proc', proc: proc(&:to_s), default: '/proc' def run output_metrics('softirqs') ok end end
Version data entries
4 entries across 4 versions & 1 rubygems