Upgrade error again!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Upgrade error again!

Post by BanditBBS »

Code: Select all

Starting nagios: done.
NDOUTILS UPGRADED!
Saving old crontab to /tmp/nagios.crontab.orig...
Removing XI cron jobs...
Saving old crontab to /tmp/root.crontab.orig...
Removing XI cron jobs...
mv: cannot move `/etc/sudoers.new' to `/etc/sudoers': Operation not permitted
We really need to find a new way to do the sudoers stuff in the upgrade and I cna't be the only user with that stuff protected and not allowed to be edited. What do I need to do to get around this issue?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Upgrade error again!

Post by SteveBeauchemin »

Suggestion from Steve...

run the update from the command line - always...

Code: Select all

cd /tmp/nagiosxi
Look at the files. You will notice 5-sudoers

If you look at the file you can see that you can fool it into thinking that it already ran. If installed.sudoers exists, it skips this step. It thinks it is already done.

I have custom sudo from Quest installed, and our sudoers is centrally controlled. I have to always do this.

Code: Select all

touch installed.sudoers
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Upgrade error again!

Post by dwhitfield »

Thanks again @SteveBeauchemin!

@ BanditBBS, we've kept around what I suppose could be called crufty code due to CentOS 5. Now that CentOS 5 is going out of support, I am thinking we will have a fix. Unfortunately, I don't have an ETA at present, but I did bring it to the attention of other members of the team since CentOS 5 is officially off our QA board.

If you'd like, I can try to get a little more detail on when we should have a fix in place.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Upgrade error again!

Post by avandemore »

BanditBBS wrote:and I cna't be the only user with that stuff protected and not allowed to be edited
No, not the only one. It's just very rare and depending on the amount of system modifications the target system has, it can make the XI install out of scope.

This page contains instructions about editing sudoers to allow Nagios privileges needed to operate normally.

https://support.nagios.com/kb/article.php?id=34

If you do that process ahead of time, you can comment out the sudoers stuff in the upgrade script or do as @SteveBeauchemin suggested.

Just by the end of it, you'll need your sudoers or whatever your equivalent is to have the appropriate entries.
Previous Nagios employee
Locked