sensu-plugins / sensu-plugins-memory-checks

This plugin provides native memory instrumentation for monitoring and metrics collection, including: memory usage via `free` and `vmstat`, including metrics. Note that this plugin may have cross-platform issues.
http://sensu-plugins.io
MIT License
15 stars 50 forks source link

vmstat gem installation path #39

Closed jaykumar-jnpr closed 7 years ago

jaykumar-jnpr commented 8 years ago

Install vmstat gem into the path that sensu gems are expected to run from: sudo /opt/sensu/embedded/bin/gem install vmstat --no-rdoc --no-ri

following above instruction, what is the expected destination this would install the gem file to?

I am able to install this gem as user "sensu", and gem installation destination is

/opt/sensu/.gem/ruby/2.3.0/gems

But rest of sensu gem dependencies are at

/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/

I am not too happy about dependencies spread across multiple locations...

majormoses commented 8 years ago

@jaykumar-jnpr unless you are disabling the embedded gems it should be installed in the context of the embedded gems.

majormoses commented 7 years ago

@eheydrick should we close this due to lack of response?

eheydrick commented 7 years ago

@jaykumar-jnpr the gems should be installed under /opt/sensu/embedded. You'll need to install them as the root user as that directory is owned by root by default. the sudo command you included should do it however if you are still having problems feel free to reopen this and include the full output.