I am following the instruction here http://sensuapp.org/docs/0.16/adding_a_check to run
gem install sensu-plugin --no-rdoc --no-ri
However I’m getting an error message:
$ sudo gem install sensu-plugin --no-rdoc --no-ri
Fetching: json-1.8.2.gem (100%)
Building native extensions. This could take a while…
ERROR: Error installing sensu-plugin:
ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file – mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:1:in `<main>'
The system is ubunut 14.04
I have a couple of questions:
An omnibus package is mentioned a lot in the forum, however I am not able to locate in apt repos. Can I install it via apt-get?
How can I automate the ‘gem install’ command in chef?
Why I am getting a mkmf Load error?
What is the purpose of the sensu-plugin?