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?
CentOS7 Upgrade to 5.5.0 affects sudo
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS7 Upgrade to 5.5.0 affects sudo
It is, if you got to the end of the upgrade script and it said upgrade was compleye..Bitflogger wrote:So, is it reasonable to think that the upgrade did do everything it was supposed to do?
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.
-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: CentOS7 Upgrade to 5.5.0 affects sudo
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS7 Upgrade to 5.5.0 affects sudo
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
https://assets.nagios.com/downloads/nag ... ctions.pdf
When it asks if you want to update sudoers, choose N
-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: CentOS7 Upgrade to 5.5.0 affects sudo
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!
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!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS7 Upgrade to 5.5.0 affects sudo
Yes, looks like everything else completed.Bitflogger wrote:Nagios XI Upgrade Complete!
-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: CentOS7 Upgrade to 5.5.0 affects sudo
This can be locked. Thanks!