Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1291718
Summary: | nagios 4.0.8 fails to start with "Error: Failed to initialize query handler" (bind() failed: No such file or directory) | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Lenz Grimmer <lenz> |
Component: | nagios | Assignee: | Scott Wilkerson <swilkerson> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | epel7 | CC: | affix, aron, cfeller, jose.p.oliveira.oss, lemenkov, linux, nb, ondrejj, shawn.starr, s, swilkerson, vanlee.araujo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | nagios-4.0.8-2.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-01-21 04:39:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Lenz Grimmer
2015-12-15 13:45:25 UTC
See BUG#1291734 for the second issue related to creating the socket file if SELinux is enabled. I suggest fixing this bug first, once the socket location has been decided, the SELinux policy should be updated accordingly. nagios-4.0.8-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-eed09b5974 Hello. Looking at patch in EPEL git: +#!!!! This avc is allowed in the current policy +allow nagios_t nagios_spool_t:sock_file { write create unlink }; +#!!!! This avc can be allowed using the boolean 'daemons_enable_cluster_mode' +allow nagios_t self:unix_stream_socket connectto; Do you think, that ... 1. these comments should be part of patch? 2. it's a good idea to modify settings, which can be set by selinux booleans? 3. selinux settings should go into nagios main package instead of nagios-selinux? 4. selinux policy updates should be a part of nagios\*src.rpm, instead of selinux-policy package? May be all of above comments are irrelevant and this bug should be reported against selinux-policy package, instead of nagios package. Because there are changes in nagios after udpate to v4, there are required changes in selinux policy. But because nagios module is a part of upstream selinux-policy-contrib, there is no need to add another module to nagios package, but it's better to fix this in selinux-policy package. Please, consider removaol of this patch and update and change component of this but to selinux-policy. I agree that this should probably be fixed in selinux-policy instead. nagios-4.0.8-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-eed09b5974 To resolve this problem in CentOS, I'm create a directory /var/log/nagios/rw that not exist and apply permission to user that have access. My case is 'nagios'. mkdir /var/log/nagios/rw chmod 777 /var/log/nagios/rw And resolve all your problems. :-) Van: I'm aware that this problem can be solved by manually creating /var/log/nagios/rw (as I wrote in the initial report). The point is, I should not have to do that myself, the RPM package should create all the necessary directories itself. nagios-4.0.8-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |