Page 1 of 1

CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Mon Jul 02, 2018 4:33 pm
by Bitflogger
I upgraded to 5.5.0 using the standard selection from the Admin page.

It seemed to succeed but had the error at the end of the output:

>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

It seemed that the sudo command was giving the same result from the command line.

[ead@winston MIBS]$ sudo cat /etc/sudoers
>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

My support staff fixed the sudo problem.

I checked the plugins, they were updated.

There is a reference about the problem in Nagios support, https://support.nagios.com/forum/viewto ... 16&t=36630 but it applies to CentOS 5.

So, is it reasonable to think that the upgrade did do everything it was supposed to do?

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Mon Jul 02, 2018 4:38 pm
by scottwilkerson
Bitflogger wrote:So, is it reasonable to think that the upgrade did do everything it was supposed to do?
It is, if you got to the end of the upgrade script and it said upgrade was compleye..

The upgrade actually asks you if you want it to update the sudoers file.

My guess is your organization uses a separate file for nagios entries and then it added it twice which is why you got the error.

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Mon Jul 02, 2018 4:40 pm
by Bitflogger
Hello,

I did not see anything in the output after the warning about sudo.

The "Check for updates" selection says I am up to date.

It did say my temporary license was expired, but that was coming up and may have been a coincidence.

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Mon Jul 02, 2018 4:48 pm
by scottwilkerson
Then run the upgrade again Use manual upgrade not Web UI
https://assets.nagios.com/downloads/nag ... ctions.pdf

When it asks if you want to update sudoers, choose N

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Tue Jul 03, 2018 9:02 am
by Bitflogger
Hello,

The manual upgrade did not ask about altering sudo, and I did not get any sudo error.

In the output I see:

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/V2-MIB.MY
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/IP-MIB_rfc4293.my)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt)

Nagios XI Upgrade Complete!
---------------------------

So it looks OK, but it looks like I need to chase down some missing MIB definitions.

Thanks!

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Tue Jul 03, 2018 9:32 am
by scottwilkerson
Bitflogger wrote:Nagios XI Upgrade Complete!
Yes, looks like everything else completed.

Re: CentOS7 Upgrade to 5.5.0 affects sudo

Posted: Tue Aug 07, 2018 3:19 pm
by Bitflogger
This can be locked. Thanks!