sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
221 stars 279 forks source link

Error executing action `install` on resource 'gem_package[sensu-plugins-uptime-checks]' #539

Open gopalvd opened 7 years ago

gopalvd commented 7 years ago

I am using the below code snippet in my recipe to create the sensu check definition

sensu_gem 'sensu-plugins-uptime-checks' sensu_check 'check_uptime_metrics' do command 'metrics-uptime.rb --scheme sensu_stats.:::name:::' standalone true type 'metric' interval 30 handlers ['graphite'] end


I am getting the below error when running the chef client.

Running handlers: Running handlers complete Chef Client failed. 2 resources updated in 28 seconds

Is there something i can get help on?

majormoses commented 7 years ago

I dont think this is so much with your use of chef but something else going wrong. Can you try running this manually /opt/sensu/embedded/bin/gem install sensu-plugins-uptime-checks -v 1.0.0 and verify it has the same output as below. If that fails then could you open an issue on the plugin repo and ping me on it?

amandafc-BYU commented 4 years ago

Try: sudo /usr/bin/gem install forward -q --no-document -v "1.1.7" and rerun chef script.