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
Dynamic commands, services, and NRPE associations #16
Dynamic commands, services, and NRPE associations #16
Conversation
Dynamic commands, services, and NRPE associations
In the next pull, can you please update the readme to doc the breaking change and possibly use salt'grains.get' and salt'pillar.get' |
Oh man .. This breaks backwards compatibility as |
I am in favour of reverting this PR as it causes a lot of issues and forces users to adapt their pillars. What do you guys think? |
@BABILEN I'm fine with reverting it since I don't think the issues that were originally brought up were fixed. Just keep in mind it's been around for almost a year now. Is it going to be less work to fix it? |
Sorry, I thought it was pretty clear when I wrote "There is one breaking change..." The reason for renaming I haven't been following issues, but I've gone through anything linked. What issues remain unresolved? I'm happy to chime in if there's any question. |
Sure, fixing the issues would be much preferred. Let's see if fixing #28 sorts out the last issue. |
This is the first of two forthcoming PRs relating to dynamic Nagios configuration using Salt.
This PR adds the capability to define a Nagios service check in one place in the pillar data, and for both the NRPE-daemon-running minion and the Nagios-running minion to emit appropriate configurations for each. The data added to
pillar.example
illustrates how to use this data. As the author, it's hard to judge how straightforward this is; please let me know if actual documentation is necessary.There is one breaking change: I changed the name of the
nagios.nrpe.checks
dict (used to embedcommand[...]=...
lines directly intonrpe.cfg
) to benagios.nrpe.nrpe_commands
. This is to reduce confusion about where checks (in the broader sense) are defined vs simpler command specifications.This PR also includes fixes in
pillar.example
relating to use of thenagios.lookup
dict (and the key names defined therein).Still TODO is porting the dynamic NRPE configuration emitter states to non-Debian distributions (read: distros which don't do
/etc/nagios/nrpe.d
), and validation that/usr/lib/nagios/plugins/
is a sane default fornrpe.plugin_dir
(seemap.jinja
).