Nagios LS installation

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Nagios LS installation

Post by Techmnagioslsuser »

Hello Team,

for installation in prod server with the install script, Do we need to disable SElinux? please advice.

Thanks
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Nagios LS installation

Post by gsmith »

Hi

You shouldn't. but tell me what OS you are running and I can test it.

You may have to deal with SElinux if it affects the rsyslog service.

Thanks
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: Nagios LS installation

Post by Techmnagioslsuser »

It is RHEL 8.9

Thanks
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Nagios LS installation

Post by gsmith »

Hi

During install you may get:
==============================! WARNING !====================================
SELinux is enforcing. This may prevent rsyslog from forwarding messages.
If log messages do not reach Log Server from this host, ensure SELInux is
configured to allow rsyslog forwarding.
=============================================================================
Run the following:

Code: Select all

semanage port -l | grep syslog
(Note: If semanage is not found then: yum install policycoreutils-python)

Code: Select all

[root@localhost ~]# semanage port -l | grep syslog
syslog_tls_port_t              tcp      6514, 10514
syslog_tls_port_t              udp      6514, 10514
syslogd_port_t                 tcp      601, 20514
syslogd_port_t                 udp      514, 601, 20514
If port 5544 is not listed you need to add it:

Code: Select all

semanage port -a -t syslogd_port_t -p tcp 5544
semanage port -a -t syslogd_port_t -p udp 5544
Verify it was added:

Code: Select all

[root@localhost ~]# semanage port -l | grep syslog
syslog_tls_port_t              tcp      6514, 10514
syslog_tls_port_t              udp      6514, 10514
syslogd_port_t                 tcp      5544, 601, 20514
syslogd_port_t                 udp      5544, 514, 601, 20514
Thanks
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: Nagios LS installation

Post by Techmnagioslsuser »

Sure , will update the same steps

Thanks
Locked