-
Notifications
You must be signed in to change notification settings - Fork 133
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
include_dir function does not work RHEL7 #214
Comments
Can you show file permissions for the directory? Are you able to find any messages in your log_file (defaults to |
Sure, Here is the permission set for the host that is failing to find the checks:
Here is the SELinux contexts applied to the nrpe.cfg and the nrpe_nifi_cluster.cfg
Here is the boolean for nagios sudo
Looking at /var/log/messages, this an SELinux issue:
Do you know what context needs to be set for this directory and contents? |
I have tried setting the context to use both nrpe_etc_t and nagios_etc_t and both still give the same warning about not being able to read Do you know what the correct context should be? |
Turns out setting the module context to be: etc_t allows the SELinux to read this correctly. I am guessing the nrpe_etc_t or nagios_etc_t is broken in terms of system access. Do I need to submit this to red hat or this a policy you have developed? |
Okay, that makes more sense. We don't maintain anything with regard to SELinux. If I remember correctly, this is part of a package distributed by Fedora/EPEL, so I'm not sure if you'd submit to Red Hat or somewhere else. |
Than, I will raise a ticket with EPEL and then link it back to here and vice versa. Thanks. |
EPEL bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1749156 |
We're working on updating the SELinux policy relative to nagios and NRPE in epel7; this issue should be fixed soon. |
Hello, |
Hi,
I am trying to configure nrpe to use the configuration files that we drop under include_dir configuration in the nrpe.cfg file.
I have found that on our RHEL7 boxes when we set this configuration as follows:
include_dir=/etc/nagios/nrpe.d
and add the following file:
nrpe_nifi_cluster.cfg
When the nagios runs the check, we get an error saying the command 'check_nifi_cluster_query' not defined:
Running the code from nagios
The nrpe versions information is as follows:
While we have the same configuration on RHEL 6 server:
/etc/nagios/nrpe.cfg
File listing on RHEL 6
atm.cfg
Result:
Client server nrpe
The text was updated successfully, but these errors were encountered: