Closed maxadamo closed 4 years ago
@maxadamo I added #1156 that would allow you to install gems into Sensu's embedded Ruby. Adding a prefix
property to the sensu_plugin
type would be difficult as there are two types of prefixes and the property extension
already modifies the prefix of the gem that gets installed.
Usage would either be:
package { 'vmstat':
ensure => 'installed',
provider => 'sensu_gem',
}
Or
class { 'sensu::plugins':
gem_dependencies => ['vmstat'],
}
I didn't comment yet, but that's of course better (it is the same as the old sensu if I recall correctly). Thanks.
Description of problem
I installed
sensu-plugins-memory-checks
one of the scripts contained in the plugin is called:check-ram.rb
check-ram.rb
requires a gem calledvmstat
You can check the documentation on Bonsai: sensu-plugins-memory-checksI tried to install the gem
vmstat
usingsensu::plugins
but it fails because it prepends the prefix and it's not possible to customize this prefix.I'd like to have a parameter called, for instance,
prefix
, which defaults to^sensu-(plugins|extensions)
but, for instance, it can be set to null:prefix => '',