Page 1 of 1

SELinux on Nagios XI Servers

Posted: Mon Aug 18, 2025 1:52 pm
by shoreypu
Our systems team asked if would be enable SELinux on our Nagios XI servers (now on RHEL 9). I don't know if or when SELinux would have been disabled on them. There doesn't seem to be an official stance either way from Nagios, and anything I've found so far seems to suggest disabling SELinux because it can interfere with the proper functioning of Nagios components.

Thoughts?

Thanks in advance.

Re: SELinux on Nagios XI Servers

Posted: Mon Aug 18, 2025 2:17 pm
by kg2857
It will stop some things from working...
You can search the internet for selinux nagios and read stuff.
You can set it to permissive, then over time grep the things it logs, build a series of commands to set selinux to allow what it wants to disallow related to nagios, and pipe those into the shell.
Hopefully nagios folks will chime in with their views.

Re: SELinux on Nagios XI Servers

Posted: Mon Aug 18, 2025 4:23 pm
by cdietsch
Hi shoreypu,

SELinux is not officially supported in Nagios XI, so it is recommended to disable SELinux or set to permissive mode . You are correct that it can interfere with proper functioning of Nagios components

As kg2857 suggested, you might be able to get SELinux working with Nagios, but you are likely going to have to figure out which selinux allow commands to run over time and possibly have other unforeseen issues.

Here is an older forum post that goes into a bit more detail about SELinux and Nagios issues:
viewtopic.php?t=49969

Re: SELinux on Nagios XI Servers

Posted: Tue Aug 19, 2025 9:57 am
by shoreypu
Cole,

For "SELinux is not officially supported in Nagios XI," is this documented somewhere, so I can send it to our systems and security teams?

Also, that older forum you sent says that the installer disables SELinux. Is that still the case in the current installers?

Thanks again to both you and kg2857 for your responses.

John

Re: SELinux on Nagios XI Servers

Posted: Tue Aug 19, 2025 4:32 pm
by cdietsch
Hi John,

I asked our support team for any documentation that indicates our current official stance on SELinux. I will keep you updated when I hear back, which I'm sure will be soon!

I can confirm that the XI installer still disables SELinux in the current installer.

Re: SELinux on Nagios XI Servers

Posted: Wed Aug 20, 2025 10:52 am
by shoreypu
Thanks Cole.

Could you also inquire if SELinux could be run, but in permissive mode only? Our systems team (and most likely from our cyber team) are looking to have SELinux enabled on all systems. From there perspective, the fewer exceptions, the better.

Re: SELinux on Nagios XI Servers

Posted: Wed Aug 20, 2025 11:55 am
by kg2857
Permissive means it will just log issues but not block things.

Re: SELinux on Nagios XI Servers

Posted: Wed Aug 20, 2025 3:04 pm
by cdietsch
Hey John,

Support was able to direct me to an official document that is more of a position regarding generic hardening, but SELinux is mentioned:
https://nagios.force.com/support/s/arti ... stribution

In regards to your most recent question, kg2857 is correct again, you should be able to run selinux in permissive mode.

Re: SELinux on Nagios XI Servers

Posted: Mon Aug 25, 2025 9:47 am
by sgardil
For a little bit more context, it’s technically possible to run Nagios XI under SELinux, however doing so requires extensive customization of SELinux policies. This isn’t just a one-time configuration. Any changes to XI, including updates, modifications, or the addition of custom plugins, can introduce new access requirements that would need to be manually addressed with additional policies. Since each environment is different, there is no universal policy that can be applied across all installations, which is part of the reason we don't officially support it.