Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing action start on resource service[nrpe] #91

Open
wajahatch888 opened this issue Apr 18, 2019 · 1 comment
Open

Error executing action start on resource service[nrpe] #91

wajahatch888 opened this issue Apr 18, 2019 · 1 comment

Comments

@wajahatch888
Copy link

wajahatch888 commented Apr 18, 2019

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

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@xorimabot xorimabot removed the Stale label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants