Upgrade Error to 5.4.6

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Upgrade Error to 5.4.6

Post by paul.jobb »

I Upgraded an 5.3.0 centos image to version 5.4.6 and the script ended with the following error:

sudo: unable to open /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
RESETTING CONFIG PERMS FAILED!\n


It appears that the upgrade was successful in the interface, how do I verify the installation?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade Error to 5.4.6

Post by tmcdonald »

Did you run the upgrade script as the root user? If not, try that to be sure. Otherwise if you did run it as root, it would seem your system has undergone some sort of security tune-up which messed with root's ability to run certain commands. That will need to be addressed by your security/admin team as it is out of scope of what we can support.
Former Nagios employee
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Upgrade Error to 5.4.6

Post by paul.jobb »

run as root and that particular machine is just using the ova which I haven't changed any configuration on outside of adding a ram disk per the documented process.
The tail of the upgrade.log file lists as follows:

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: https://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => xi_timeperiod_24x7.cfg
)
IMPORTING /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg' -O nagiosql.import.monitoring
RESETTING CONFIG PERMS FAILED!\n


anyways you can close, it seems to be running at the new release, I will wait for the next update and hopefully that runs better.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Error to 5.4.6

Post by lmiltchev »

anyways you can close, it seems to be running at the new release, I will wait for the next update and hopefully that runs better.
I will be closing this thread now. However, I would recommend that you double check a few things on your Nagios XI system:

- Is SELinux enabled
- Have you modified any of the permissions
- Have you modified the sudoers
- Haven you changed the "default" umask settings

If you run into similar issues in the future, please let us know ASAP, and post the entire "upgrade.log". Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked