Nagios deployment

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 `’

  • 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 http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard /
@orchtweetshttp://www.twitter.com/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 © 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

On Wednesday, November 20, 2013 at 1:09 PM, Nikhil Shah wrote:

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 (http://nagios01.theorchard.com) ================================================================================
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com) Error executing action run on resource 'bash[compile-nagios-plugins]'
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com) ================================================================================
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com) Mixlib::ShellOut::ShellCommandFailed
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com) ------------------------------------
nagios01.theorchard.com (http://nagios01.theorchard.com)
nagios01.theorchard.com (http://nagios01.theorchard.com) Expected process to exit with [0], but received '2'
nagios01.theorchard.com (http://nagios01.theorchard.com) ---- Begin output of "bash" "/tmp/chef-script20131120-30738-h8vj6d" ----
nagios01.theorchard.com (http://nagios01.theorchard.com) STDOUT:
nagios01.theorchard.com (http://nagios01.theorchard.com) STDERR: gzip: stdin: unexpected end of file
nagios01.theorchard.com (http://nagios01.theorchard.com) tar: Child returned status 1
nagios01.theorchard.com (http://nagios01.theorchard.com) tar: Error exit delayed from previous errors

Looks like you’re downloading a tarball, something is wrong with the downloaded file, and then you start getting errors when you attempt to tar -zxf the tarball. You should poke at the tarball file to see what’s wrong with it (a common occurrence is you get a HTML 404 error page instead of the package you expected).

--
Daniel DeLeo

I went and remove the plugins tar file since it was empty. When I ran knife
bootstrap again, I noticed a 404 "Not Found" error. I tried to navigate to
the link for the plugins and noticed there wasn't any packages:

nagios01.theorchard.com Error executing action create_if_missing on
resource 'remote_file[/var/chef/cache/nagios-plugins-1.4.16.tar.gz]'

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

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com Net::HTTPServerException

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

nagios01.theorchard.com 404 "Not Found"

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com Resource Declaration:

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

nagios01.theorchard.com # In
/var/chef/cache/cookbooks/nagios/recipes/client_source.rb

nagios01.theorchard.com

nagios01.theorchard.com 45: remote_file
"#{Chef::Config[:file_cache_path]}/nagios-plugins-#{plugins_version}.tar.gz"
do

nagios01.theorchard.com 46: source
"#{node['nagios']['plugins']['url']}/nagios-plugins-#{plugins_version}.tar.gz"

nagios01.theorchard.com 47: checksum
node['nagios']['plugins']['checksum']

nagios01.theorchard.com 48: action :create_if_missing

nagios01.theorchard.com 49: end

nagios01.theorchard.com 50:

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com Compiled Resource:

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

nagios01.theorchard.com # Declared in
/var/chef/cache/cookbooks/nagios/recipes/client_source.rb:45:in `from_file'

nagios01.theorchard.com

nagios01.theorchard.comremote_file("/var/chef/cache/nagios-plugins-1.4.16.tar.gz")
do

nagios01.theorchard.com provider Chef::Provider::RemoteFile

nagios01.theorchard.com action [:create_if_missing]

nagios01.theorchard.com retries 0

nagios01.theorchard.com retry_delay 2

nagios01.theorchard.com path
"/var/chef/cache/nagios-plugins-1.4.16.tar.gz"

nagios01.theorchard.com backup 5

nagios01.theorchard.com atomic_update true

nagios01.theorchard.com source
["Why Use SourceForge? Features and Benefits
http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.16.tar.gz

"]

nagios01.theorchard.com use_etag true

nagios01.theorchard.com use_last_modified true

nagios01.theorchard.com cookbook_name "nagios"

nagios01.theorchard.com recipe_name "client_source"

nagios01.theorchard.com checksum
"b0caf07e0084e9b7f10fdd71cbd3ebabcd85ad78df64da360b51233b0e73b2bd"

nagios01.theorchard.com end

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com

nagios01.theorchard.com [2013-11-20T16:14:01-05:00] ERROR: Running
exception handlers

nagios01.theorchard.com [2013-11-20T16:14:01-05:00] ERROR: Exception
handlers complete

nagios01.theorchard.com [2013-11-20T16:14:01-05:00] FATAL: Stacktrace
dumped to /var/chef/cache/chef-stacktrace.out

nagios01.theorchard.com Chef Client failed. 0 resources updated

nagios01.theorchard.com [2013-11-20T16:14:01-05:00] ERROR:
remote_file[/var/chef/cache/nagios-plugins-1.4.16.tar.gz]
(nagios::client_source line 45) had an error: Net::HTTPServerException: 404
"Not Found"

nagios01.theorchard.com [2013-11-20T16:14:01-05:00] FATAL: Chef:

On Wed, Nov 20, 2013 at 4:09 PM, Nikhil Shah nshah@theorchard.com wrote:

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 `'

--

  • 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 http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard / @orchtweetshttp://www.twitter.com/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

--

  • 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 http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard /
@orchtweetshttp://www.twitter.com/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

That’s exactly what I did. Can I change that cookbook to point to a diff URL, would that break anything? I don’t want to really modify or update this cookbook since I had some custom items for thruk, etc..
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.

On Nov 20, 2013, at 4:18 PM, Daniel DeLeo dan@kallistec.com wrote:

On Wednesday, November 20, 2013 at 1:09 PM, Nikhil Shah wrote:

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

Looks like you’re downloading a tarball, something is wrong with the downloaded file, and then you start getting errors when you attempt to tar -zxf the tarball. You should poke at the tarball file to see what’s wrong with it (a common occurrence is you get a HTML 404 error page instead of the package you expected).

--
Daniel DeLeo

A few months ago the Nagios team moved the plugins from Sourceforge over to their own site, which broke the downloads in the cookbook. This was fixed in [COOK-3729] - Update nagios plugins to the latest URL to fix broken RHEL NRPE installs by tas50 · Pull Request #200 · sous-chefs/nagios · GitHub and released in the 5.0.0 cookbook release.

Tim Smith - Systems Engineer
m: +1 707.738.8132

On Nov 20, 2013, at 1:25 PM, Nikhil Shah nshah@theorchard.com wrote:

That’s exactly what I did. Can I change that cookbook to point to a diff URL, would that break anything? I don’t want to really modify or update this cookbook since I had some custom items for thruk, etc..
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.

On Nov 20, 2013, at 4:18 PM, Daniel DeLeo dan@kallistec.com wrote:

On Wednesday, November 20, 2013 at 1:09 PM, Nikhil Shah wrote:

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

Looks like you’re downloading a tarball, something is wrong with the downloaded file, and then you start getting errors when you attempt to tar -zxf the tarball. You should poke at the tarball file to see what’s wrong with it (a common occurrence is you get a HTML 404 error page instead of the package you expected).

--
Daniel DeLeo