SELinux on Nagios XI Servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

SELinux on Nagios XI Servers

Post 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.
kg2857
Posts: 499
Joined: Wed Apr 12, 2023 5:48 pm

Re: SELinux on Nagios XI Servers

Post 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.
cdietsch
Posts: 62
Joined: Wed Aug 06, 2025 9:12 am

Re: SELinux on Nagios XI Servers

Post 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
Cheers,
- Cole
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: SELinux on Nagios XI Servers

Post 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
cdietsch
Posts: 62
Joined: Wed Aug 06, 2025 9:12 am

Re: SELinux on Nagios XI Servers

Post 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.
Cheers,
- Cole
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: SELinux on Nagios XI Servers

Post 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.
kg2857
Posts: 499
Joined: Wed Apr 12, 2023 5:48 pm

Re: SELinux on Nagios XI Servers

Post by kg2857 »

Permissive means it will just log issues but not block things.
cdietsch
Posts: 62
Joined: Wed Aug 06, 2025 9:12 am

Re: SELinux on Nagios XI Servers

Post 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.
Cheers,
- Cole
sgardil
Posts: 355
Joined: Wed Aug 09, 2023 9:58 am

Re: SELinux on Nagios XI Servers

Post 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.
Post Reply