Page 1 of 1

Nagios LS installation

Posted: Thu Jul 08, 2021 12:48 am
by Techmnagioslsuser
Hello Team,

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

Thanks

Re: Nagios LS installation

Posted: Thu Jul 08, 2021 9:16 am
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

Re: Nagios LS installation

Posted: Wed Jul 14, 2021 12:30 am
by Techmnagioslsuser
It is RHEL 8.9

Thanks

Re: Nagios LS installation

Posted: Wed Jul 14, 2021 10:20 am
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

Re: Nagios LS installation

Posted: Wed Jul 14, 2021 11:53 pm
by Techmnagioslsuser
Sure , will update the same steps

Thanks