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
-
yum_package[nagios-plugins-perl] action install (up to date)
-
yum_package[perl-Sys-Statistics-Linux] action install (up to date)
-
yum_package[nagios-plugins-http] action install (up to date)
-
yum_package[perl-Nagios-Plugin] action install (up to date)
-
yum_package[perl-LWP-Protocol-https] action install (up to date)
-
yum_package[perl-JSON] action install (up to date)
-
yum_package[nagios-plugins-ntp] action install (up to date)
Recipe: nrpe::configure
-
directory[/etc/nagios/nrpe.d] action create (up to date)
-
template[/etc/nagios/nrpe.cfg] action create (up to date)
-
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
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
yum_package[nagios-plugins-perl] action install (up to date)
yum_package[perl-Sys-Statistics-Linux] action install (up to date)
yum_package[nagios-plugins-http] action install (up to date)
yum_package[perl-Nagios-Plugin] action install (up to date)
yum_package[perl-LWP-Protocol-https] action install (up to date)
yum_package[perl-JSON] action install (up to date)
yum_package[nagios-plugins-ntp] action install (up to date)
Recipe: nrpe::configure
directory[/etc/nagios/nrpe.d] action create (up to date)
template[/etc/nagios/nrpe.cfg] action create (up to date)
service[nrpe] action start
================================================================================
Error executing action
starton 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