#
# Author:: Seth Chisamore <schisamo@opscode.com>
# Cookbook Name:: nagios
# Attributes:: default
#
# Copyright 2011, Opscode, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Allow a Nagios server to monitor hosts in multiple environments.  Impacts NRPE configs as well
default['nagios']['multi_environment_monitoring'] = false

default['nagios']['user']  = 'nagios'
default['nagios']['group'] = 'nagios'

case node['platform_family']
when 'debian'
default['nagios']['plugin_dir']   = '/usr/lib/nagios/plugins'
when 'rhel','fedora'
  default['nagios']['plugin_dir'] = '/usr/lib64/nagios/plugins'
else
  default['nagios']['plugin_dir'] = '/usr/lib/nagios/plugins'
end
#
# Author:: Seth Chisamore <schisamo@opscode.com>
# Cookbook Name:: nagios
# Attributes:: default
#
# Copyright 2011, Opscode, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Allow a Nagios server to monitor hosts in multiple environments.  Impacts NRPE configs as well
default['nagios']['multi_environment_monitoring'] = false

default['nagios']['user']  = 'nagios'
default['nagios']['group'] = 'nagios'

case node['platform_family']
when 'debian'
default['nagios']['plugin_dir']     = '/usr/lib/nagios/plugins'
when 'rhel','fedora'
  if node['kernel']['machine'] == "i686"
    default['nagios']['plugin_dir'] = '/usr/lib/nagios/plugins'
  else
    default['nagios']['plugin_dir'] = '/usr/lib64/nagios/plugins'
  end
else
  default['nagios']['plugin_dir']   = '/usr/lib/nagios/plugins'
end
Add 32bit RHEL support for the nagios plugins directory
Add 32bit RHEL support for the nagios plugins directory


Former-commit-id: 73bc64ab57e2e2986ee985041d88b2940822a87a [formerly 4c6d5109c5c343f56ea43ac5b1b69969023b6a46] [formerly 2eb2a13bc4b9ec104dbb8c7b739851482f642e8e [formerly e069b4bb04752849f3dc0c48a6223a0c925f313c [formerly 48457e6f5fd0593a8257cfff2b84db3d7642f6a4]]]
Former-commit-id: d6ec4eefbd945dabe4dffa393a80d65ab7d921fa [formerly 5e0c0d02c26dd26661f2d1e3b801bb1c5948cfa0]
Former-commit-id: 609fb277dff34efeabacfe73c96c58ecfb93a2ba
Former-commit-id: c03c7bc391ded028ece7e863e55cb463e237d934