[chef] nagios deployment


Chronological Thread 
  • From: Nikhil Shah < >
  • To:
  • Subject: [chef] nagios deployment
  • Date: Wed, 20 Nov 2013 16:09:20 -0500

I've deployed nagios in a few environments; however, im running into a few error messages that I couldn't figure out. I am attempting to build a nagios server and i tried both roles of server and client to install the nagios plugins but both fail at the same section. :



nagios01.theorchard.com ================================================================================

nagios01.theorchard.com 

nagios01.theorchard.com Error executing action `run` on resource 'bash[compile-nagios-plugins]'

nagios01.theorchard.com 

nagios01.theorchard.com ================================================================================

nagios01.theorchard.com 

nagios01.theorchard.com 

nagios01.theorchard.com 

nagios01.theorchard.com 

nagios01.theorchard.com Mixlib::ShellOut::ShellCommandFailed

nagios01.theorchard.com 

nagios01.theorchard.com ------------------------------------

nagios01.theorchard.com 

nagios01.theorchard.com Expected process to exit with [0], but received '2'

nagios01.theorchard.com ---- Begin output of "bash"  "/tmp/chef-script20131120-30738-h8vj6d" ----

nagios01.theorchard.com STDOUT: 

nagios01.theorchard.com STDERR: gzip: stdin: unexpected end of file

nagios01.theorchard.com tar: Child returned status 1

nagios01.theorchard.com tar: Error exit delayed from previous errors

nagios01.theorchard.com /tmp/chef-script20131120-30738-h8vj6d: line 2: cd: nagios-plugins-1.4.16: No such file or directory

nagios01.theorchard.com /tmp/chef-script20131120-30738-h8vj6d: line 3: ./configure: No such file or directory

nagios01.theorchard.com make: *** No targets specified and no makefile found.  Stop.

nagios01.theorchard.com make: *** No rule to make target `install'.  Stop.

nagios01.theorchard.com ---- End output of "bash"  "/tmp/chef-script20131120-30738-h8vj6d" ----

nagios01.theorchard.com Ran "bash"  "/tmp/chef-script20131120-30738-h8vj6d" returned 2




---STACK TRACE---

Generated at 2013-11-20 16:03:44 -0500

Mixlib::ShellOut::ShellCommandFailed: bash[compile-nagios-plugins] (nagios::client_source line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'

---- Begin output of "bash"  "/tmp/chef-script20131120-30738-h8vj6d" ----

STDOUT:

STDERR: gzip: stdin: unexpected end of file

tar: Child returned status 1

tar: Error exit delayed from previous errors

/tmp/chef-script20131120-30738-h8vj6d: line 2: cd: nagios-plugins-1.4.16: No such file or directory

/tmp/chef-script20131120-30738-h8vj6d: line 3: ./configure: No such file or directory

make: *** No targets specified and no makefile found.  Stop.

make: *** No rule to make target `install'.  Stop.

---- End output of "bash"  "/tmp/chef-script20131120-30738-h8vj6d" ----

Ran "bash"  "/tmp/chef-script20131120-30738-h8vj6d" returned 2

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.2.0/lib/mixlib/shellout.rb:251:in `invalid!'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.2.0/lib/mixlib/shellout.rb:237:in `error!'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/mixin/shell_out.rb:45:in `shell_out!'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/provider/execute.rb:60:in `block in action_run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/mixin/why_run.rb:52:in `call'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/mixin/why_run.rb:52:in `add_action'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/provider.rb:149:in `converge_by'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/provider/execute.rb:59:in `action_run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/provider/script.rb:38:in `action_run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/provider.rb:114:in `run_action'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource.rb:625:in `run_action'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/runner.rb:49:in `run_action'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/runner.rb:81:in `block (2 levels) in converge'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/runner.rb:81:in `each'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/runner.rb:81:in `block in converge'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/resource_collection.rb:96:in `execute_each_resource'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/runner.rb:80:in `converge'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/client.rb:433:in `converge'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/client.rb:500:in `do_run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/client.rb:199:in `block in run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/client.rb:193:in `fork'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/client.rb:193:in `run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/application.rb:208:in `run_chef_client'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/application/client.rb:312:in `block in run_application'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/application/client.rb:304:in `loop'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/application/client.rb:304:in `run_application'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/lib/chef/application.rb:66:in `run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.0/bin/chef-client:26:in `<top (required)>'

/usr/bin/chef-client:23:in `load'

/usr/bin/chef-client:23:in `<main>'


--
Nikhil Shah / System Administrator

nshah@theorchard.com


The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com

Facebook / @orchtweets


Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited



Archive powered by MHonArc 2.6.16.

§