Skip to content

allowed_hosts max limit #78

@robinwolny

Description

@robinwolny

Cookbook version

2.0.3

Chef-client version

the latest (doesn't matter)

Platform Details

CentOS6/7

Scenario:

when allowed_hosts in /etc/nagios/nrpe.cfg has more then 144 IPs, nrpe is failing and won't start up

Steps to Reproduce:

edit /etc/nagios/nrpe.cfg, option allowed_hosts with 150 or more IPs
Not sure if it's max limitation of NRPE or NRPE bug, but we should have some max limits to avoid it.

Expected Result:

nrpe up and running

Actual Result:

[2018-04-19T12:57:30+00:00] INFO: template[/etc/nagios/nrpe.cfg] sending restart action to service[nrpe] (delayed)
Recipe: nrpe::configure
 * service[nrpe] action restart[2018-04-19T12:57:30+00:00] INFO: Processing service[nrpe] action restart (nrpe::configure line 84)



================================================================================
   Error executing action `restart` on resource 'service[nrpe]'
   ================================================================================

   Mixlib::ShellOut::ShellCommandFailed
   ------------------------------------
   Expected process to exit with [0], but received '1'
   ---- Begin output of /sbin/service nrpe restart ----
   STDOUT: Shutting down nrpe [  OK  ]
   Starting nrpe [FAILED]
   STDERR:
   ---- End output of /sbin/service nrpe restart ----
   Ran /sbin/service nrpe restart returned 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions