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
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: