Open wajahatch888 opened 5 years ago
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.
Cookbook version
2.0.0
Chef-client version
13.11.3
Platform Details
AWS AMI
Scenario:
Installing NRPE recipe
Attributes
default['nrpe']['allowed_hosts'] = [ "127.0.0.1,10.20.0.0/16,10.4.0.0/16"] default['nrpe']['install_method'] = 'package' default['nrpe']['packages'] = %w(nagios-plugins-perl perl-Sys-Statistics-Linux nagios-plugins-http perl-Nagios-Plugin perl-LWP-Protocol-https perl-JSON nagios-plugins-ntp)
ERROR
service[nrpe]: No custom command for start specified and unable to locate the init.d script!
Stack Trace
Installing Cookbook Gems: Compiling Cookbooks... Converging 25 resources Recipe: nrpe::_package_install
service[nrpe] action start
service[nrpe]: No custom command for start specified and unable to locate the init.d script!
Error executing action
start
on resource 'service[nrpe]'Chef::Exceptions::Service
service[nrpe]: No custom command for start specified and unable to locate the init.d script!
Resource Declaration:
In /var/chef/cache/cookbooks/nrpe/recipes/configure.rb
70: service node['nrpe']['service_name'] do 71: action [:start, :enable] 72: supports :restart => true, :reload => true, :status => true 73: end 74:
Compiled Resource:
Declared in /var/chef/cache/cookbooks/nrpe/recipes/configure.rb:70:in `from_file'
service("nrpe") do action [:start, :enable] default_guard_interpreter :default service_name "nrpe" enabled nil running nil masked nil pattern "nrpe" declared_type :service cookbook_name "nrpe" recipe_name "configure" supports {:restart=>true, :reload=>true, :status=>true} end
System Info:
chef_version=13.11.3 platform=amazon platform_version=2018.03 ruby=ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux] program_name=chef-client worker: ppid=32544;start=20:19:22; executable=/opt/chef/bin/chef-client