sensu-plugins / sensu-plugins-cpu-checks

This plugin provides native CPU instrumentation for monitoring and metrics collection, including: CPU usage and metrics for user, nice, system, idle, iowait, irq, softirq, steal, and guest.
http://sensu-plugins.io
MIT License
13 stars 34 forks source link

shell scripts not linking to bin directory #21

Open agoddard opened 7 years ago

agoddard commented 7 years ago

It looks like we're only linking *.rb executables. Would it be a good idea to also link the .sh versions of plugins here, or are there reasons we'd rather avoid this? https://github.com/sensu-plugins/sensu-plugins-cpu-checks/blob/master/sensu-plugins-cpu-checks.gemspec#L15

eheydrick commented 7 years ago

Hey @agoddard, the issue is that rubygems can't create binstubs for non-ruby files. To get around this we've added ruby wrapper scripts that execute the non-ruby files (see https://github.com/sensu-plugins/sensu-plugins-memory-checks/blob/master/bin/check-swap.rb for an example). We could do that here except there's already a check-ruby.rb so we'd need to call it something else.