Page 1 of 1

Nagios XI/LS support for RHEL with SUSE license plan

Posted: Thu Apr 16, 2020 5:48 pm
by dariusz.nalazek
Hello.

I'm using both Nagios XI and Nagios LS cluster.
Nagios runs well on RHEL, but in last days I found out some problem concerning RHEL with SUSE support plan (SUSE Linux Enterprise Server with Expanded Support).
I had to migrate support of my RHEL servers from Red Hat support plan to SUSE support plan (it's still the RHEL OS).
And after license migration I have some minor issues with installing or upgrading both Nagios XI and Nagios LS.
Problem is in one package (sles_es-release-server package replaces redhat-release package )and structure of /etc/redhat-release... (a few extra comment lines were added)

Code: Select all

cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.8 (Maipo)
# This is a "SLES Expanded Support platform release 7.8"
# The above "Red Hat Enterprise Linux Server" string is only used to 
# keep software compatibility.
I manually fix it each time... but if you just could add regular support for RHEL server from SUSE Linux Enterprise Server with Expanded Support, it would be nice.

Nagios XI fix:
script: get-os-info
replace:

Code: Select all

 31         elif rpm -q redhat-release || rpm -q redhat-release-server; then
35         version=`sed 's/.*release \([0-9.]\+\).*/\1/' /etc/redhat-release` 
with:

Code: Select all

 31         elif rpm -q redhat-release || rpm -q redhat-release-server || rpm -q sles_es-release-server; then
35         version=`grep -ve ^# /etc/redhat-release|sed 's/.*release \([0-9.]\+\).*/\1/'` 
Nagios LS fix (very similar to the above):
script: libinstall.sh
replace:

Code: Select all

564                 elif rpm -q redhat-release || rpm -q redhat-release-server; then
568                 version=`sed 's/.*release \([0-9.]\+\).*/\1/' /etc/redhat-release`
with:

Code: Select all

564                 elif rpm -q redhat-release || rpm -q redhat-release-server || rpm -q sles_es-release-server; then
568                 version=`grep -ve ^# /etc/redhat-release|sed 's/.*release \([0-9.]\+\).*/\1/'`
Best regards,
Darek.

Re: Nagios XI/LS support for RHEL with SUSE license plan

Posted: Fri Apr 17, 2020 10:38 am
by ssax
I've submitted a Feature Request for both on your behalf (with links back to this thread):

Code: Select all

XI: Add support for RHEL with SUSE license plan
LS: Add support for RHEL with SUSE license plan
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Re: Nagios XI/LS support for RHEL with SUSE license plan

Posted: Mon Apr 27, 2020 2:28 pm
by dariusz.nalazek
sles_es-release-server - it's package for RHEL 7 (SUSE ES 7)
sles_es-release - it's package for RHEL 8 (SUSE ES 8)

so line with support for both RHEL 7 and 8 should look like:

Code: Select all

elif rpm -q redhat-release || rpm -q redhat-release-server || rpm -q sles_es-release-server || rpm -q sles_es-release; then
Thanx for fast implementation :)

Re: Nagios XI/LS support for RHEL with SUSE license plan

Posted: Mon Apr 27, 2020 4:59 pm
by ssax
Currently, XI only supports EL6 and EL7.

Re: Nagios XI/LS support for RHEL with SUSE license plan

Posted: Thu Apr 30, 2020 9:32 am
by ssax
I've alerted the devs, they are going to add that in there once EL8 support is added here shortly.