Page 1 of 1

Why nagios stop work when i try "send custom notification"

Posted: Thu Jul 23, 2015 2:58 pm
by Jessuzz94
In the web interface, when i try to send a custom notification in one host or service, in the server shows me a selinux report, and then i cant access to any menu of nagios web. The report that trhow selinux is this:

Re: Why nagios stop work when i try "send custom notificatio

Posted: Thu Jul 23, 2015 4:45 pm
by jdalrymple
While it's not expressly stated in our core documentation, it is in our NagiosXI documentation. Nagios doesn't play well with selinux. If you can disable it I suggest it. Otherwise you may as well familiarize yourself today with debugging selinux related problems and writing selinux policies to get around them. Since Nagios does a lot of "out of context" work by its nature it causes selinux to raise flags as part of its normal routine.

Nagios suggests you disable selinux, and this will solve your problem.

This is for CentOS 5 but applies to current versions as well: https://www.centos.org/docs/5/html/5.1/ ... sable.html

Re: Why nagios stop work when i try "send custom notificatio

Posted: Fri Jul 24, 2015 11:27 am
by Jessuzz94
the enforcing mode of selinux is on permissive, i need to put it on disable?, if i put selinux in disable enforcing mode what is the problem that i can get from centos?

Re: Why nagios stop work when i try "send custom notificatio

Posted: Fri Jul 24, 2015 1:36 pm
by jdalrymple
Jessuzz94 wrote:if i put selinux in disable enforcing mode what is the problem that i can get from centos?
Instead of things not working, things will work.

I'm absolutely a security advocate, but this article's comments and how the author is chastised well reflects my personal opinion of how well selinux is able to bring security to the masses:

https://major.io/2013/04/15/seriously-s ... g-selinux/

Here at Nagios, our advice for your Nagios systems is to secure the system using general security constructs such as strong passwords and good firewall practices (inside and outside the system) and disable selinux.

Re: Why nagios stop work when i try "send custom notificatio

Posted: Tue Jul 28, 2015 1:57 pm
by Jessuzz94
I think that disabled selinux repaired some problems :D, can look this trhead, Thanks!