When trying the upgrade from 5.8.4 to 5.8.5 the upgrade fails with an error of:
Checking group memberships...
usermod: group 'nagcmd' does not exist
Not sure if something broke when the OS was updated from RHEL 8.3 to 8.4, but is there any fixes I should do to correct this outside just creating the group?
5.8.4 to 5.8.5 upgrade error
Re: 5.8.4 to 5.8.5 upgrade error
Hello @J.A.K,
Thanks for reaching out and want to get the upgrade.log so we can see what is going on, but also check to see if 'selinux' got re-enabled. Sounds like the os was upgraded and the Nagios XI environment as well so we have several variables to look at.
Your nagcmd in /etc/group should look like this:
The upgrade log is located: '/usr/local/nagiosxi/tmp/upgrade.log', please send this along as well.
Thanks,
Perry
Thanks for reaching out and want to get the upgrade.log so we can see what is going on, but also check to see if 'selinux' got re-enabled. Sounds like the os was upgraded and the Nagios XI environment as well so we have several variables to look at.
Code: Select all
sestatusCode: Select all
grep -E 'nagcmd' /etc/groupPlease send us the following:nagcmd1001:nagios,apache,snmptt
Code: Select all
tree -pufidg /usr/local/nagios/ > /tmp/treeresults.txt && tree -pufidg /usr/local/nagiosxi/ >> /tmp/treeresults.txtCode: Select all
cat /etc/*release
uname -aThanks,
Perry
Re: 5.8.4 to 5.8.5 upgrade error
In order:
[g9988725@vml1038 ~]$ sestatus
SELinux status: disabled
[g9988725@vml1038 ~]$ grep -E 'nagcmd' /etc/group
#nagcmd
56017:nagios,apache,snmptt
Looks like the line is commented out? Pulling the entirety of /etc/group I see this line right above it:
nagios
56017:nagios,apache,snmptt
#nagcmd
56017:nagios,apache,snmptt
tree isn't installed on my system.
[g9988725@vml1038 ~]$ cat /etc/*release
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.4 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.4:GA"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation ... e_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"
Red Hat Enterprise Linux release 8.4 (Ootpa)
Red Hat Enterprise Linux release 8.4 (Ootpa)
[g9988725@vml1038 ~]$ uname -a
Linux vml1038 4.18.0-305.3.1.el8_4.x86_64 #1 SMP Mon May 17 10:08:25 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
For the update log it appears to be blank:
-rwxrwxr-- 1 nagios ntx00p1 0 Jul 16 08:19 upgrade.log
[g9988725@vml1038 ~]$ sestatus
SELinux status: disabled
[g9988725@vml1038 ~]$ grep -E 'nagcmd' /etc/group
#nagcmd
Looks like the line is commented out? Pulling the entirety of /etc/group I see this line right above it:
nagios
#nagcmd
tree isn't installed on my system.
[g9988725@vml1038 ~]$ cat /etc/*release
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.4 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.4:GA"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation ... e_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"
Red Hat Enterprise Linux release 8.4 (Ootpa)
Red Hat Enterprise Linux release 8.4 (Ootpa)
[g9988725@vml1038 ~]$ uname -a
Linux vml1038 4.18.0-305.3.1.el8_4.x86_64 #1 SMP Mon May 17 10:08:25 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
For the update log it appears to be blank:
-rwxrwxr-- 1 nagios ntx00p1 0 Jul 16 08:19 upgrade.log
Re: 5.8.4 to 5.8.5 upgrade error
Hello @J.A.K,
Thanks for following up with the details.
Since the upgrade log did not even get written to, the upgrade did not get very far.
A couple of things, please check to see if noexec on /tmp?
Then re-run the upgrade:
Thanks,
Perry
Thanks for following up with the details.
Since the upgrade log did not even get written to, the upgrade did not get very far.
A couple of things, please check to see if noexec on /tmp?
Code: Select all
mount | grep -E 'noexec'Code: Select all
./upgrade -n 2>&1 | tee /tmp/nagiosxi/upgrade.logPerry
Re: 5.8.4 to 5.8.5 upgrade error
Looks like I should be good. After you pointed out to verify the group exists (I really should have checked that to begin with honestly) and I saw it was commented out I just incremented the group ID one not to conflict with the Nagios group and uncommented. After that the upgrade ran without issues.
I'll have to do some checking on my end to see what happened there, but I think this can be closed out. Thank you for pointing me in the right direction!
I'll have to do some checking on my end to see what happened there, but I think this can be closed out. Thank you for pointing me in the right direction!