saltstack-formulas / nagios-formula

nagios-formula
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
21 stars 73 forks source link

Use of cfg_dir on Redhat #61

Open Yoda-BZH opened 6 years ago

Yoda-BZH commented 6 years ago

Hello,

In https://github.com/saltstack-formulas/nagios-formula/blob/master/nagios/map.jinja#L134, cfg_dir is not defined.

Is there a reason for not having this variable ? If none, would it be possible to have it defined to /etc/nrpe.d ?

Thank you

Server: Red Hat Enterprise Linux Server release 7.5 (Maipo) nrpe: nrpe-2.15-4.2.el7rhgs.x86_64

Yoda-BZH commented 6 years ago

With the tested nrpe, include_dir is present and enabled by default.

# INCLUDE CONFIG DIRECTORY
# This directive allows you to include definitions from config files (with a
# .cfg extension) in one or more directories (with recursion).

#include_dir=<somedirectory>
#include_dir=<someotherdirectory>

include_dir=/etc/nrpe.d/
Yoda-BZH commented 6 years ago

Also, https://github.com/saltstack-formulas/nagios-formula/blob/master/nagios/nrpe/dynamic.sls#L13-L14 should be changed to be use on recent Red Hat.

mgomersbach commented 5 years ago

seems solves by https://github.com/saltstack-formulas/nagios-formula/commit/32864fcff6abea3efcf5a66e0972e21954d46f61 ?