Code Monkey home page Code Monkey logo

Comments (4)

eheydrick avatar eheydrick commented on September 18, 2024

There's a note in the README about the vmstat dependency. https://github.com/sensu-plugins/sensu-plugins-memory-checks#installation. I will clarify the instructions.

You install the vmstat gem with /opt/sensu/embedded/bin/gem install vmstat --no-ri --no-rdoc or the equivalent in your config management.

from sensu-plugins-memory-checks.

nhooey avatar nhooey commented on September 18, 2024

@eheydrick When I try to install, I get this error:

$ sudo -H /opt/sensu/embedded/bin/gem install --no-ri --no-rdoc vmstat
Fetching: vmstat-2.1.0.gem (100%)
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ rb_sysopen - /opt/sensu/.gem/ruby/2.3.0/cache/vmstat-2.1.0.gem

So it's complaining that /opt/sensu/.gem doesn't exist. If I create that directory, it works.

from sensu-plugins-memory-checks.

eheydrick avatar eheydrick commented on September 18, 2024

You need to be root to write into the sensu dir. Try it sudo'ing to root and not the sensu user.

$ sudo /opt/sensu/embedded/bin/gem install vmstat --no-rdoc --no-ri
Fetching: vmstat-2.1.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed vmstat-2.1.0
1 gem installed

from sensu-plugins-memory-checks.

eheydrick avatar eheydrick commented on September 18, 2024

I updated the README with instructions for installing the vmstat gem.

from sensu-plugins-memory-checks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.