Page 1 of 1
Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Wed Mar 31, 2021 9:52 am
by gdolidze
We just migrated Nagios from CentOS6 to CentOS7 and when we try to upgrade nagios but we get this and it just stops at the last line.
We have migrated the data as well.
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/ndo/ndo-3.0.6/src'
make[1]: `ndo.so' is up to date.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndo/ndo-3.0.6/src'
/usr/bin/install -c -m 774 -o nagios -g nagios src/ndo.so /usr/local/nagios/bin/ndo.so
Shared module ndo.so installed
/usr/local/nagios/etc/nagios.cfg configured to use NDO
UPGRADE: POST-UPGRADE: NDO post upgrade started...
sed: can't read /usr/local/nagios/etc/ndo.cfg: No such file or directory
Re: Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Wed Mar 31, 2021 3:54 pm
by vtrac
Hi,
Migrate from CentOS 6 to 7:
- Setup a clean CentOS 7 VM (machine)
- Install Nagios XI, same version on your OLD CentOS 6
- Restore from backup of OLD CentOS 6 onto the new CentOS 7.
- Test your CentOS 7, making sure all are good.
- Move your license, IP and shutdown your OLD CentOS 6.
I hope your migration steps were the same as above.
As to the missing "/usr/local/nagios/etc/ndo.cfg", you can try this:
Regards,
Vinh
Re: Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Thu Apr 01, 2021 8:07 am
by gdolidze
We deployed the Vmware ovf that was provided by nagios, I have already migrated the data.
I haven't change the network info until everything is working correctly.
I got the following while trying to run yum.
updates | 2.9 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/2): epel/x86_64/primary_db | 6.9 MB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-ndoutils.x86_64 0:5.8.2-1.el7 will be installed
--> Processing Conflict: nagiosxi-ndoutils-5.8.2-1.el7.x86_64 conflicts nagiosxi-deps-el7
--> Finished Dependency Resolution
Error: nagiosxi-ndoutils conflicts with nagiosxi-deps-el7-5.8.2-1.noarch
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
How should I Proceed.
Re: Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Thu Apr 01, 2021 3:33 pm
by vtrac
Hi,
Hang on, something is NOT right here.
What version of Nagios XI was on your CentOS 6?
What version of Nagios XI on the new OVA file for CentOS 7 you downloaded? .... before the upgrade.
NDOUtils should be included (standard) with Nagios XI, not sure why you are missing.
Can you please give me detail steps of what you did?
Regards,
Vinh
Re: Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Fri Apr 02, 2021 9:29 am
by gdolidze
The old nagios server info is the following
A new Nagios XI update is available.
5.8.3 was released on March 31st, 2021.
Visit
www.nagios.com to obtain the latest update.
Latest Available Version: 5.8.3
Installed Version: 5.6.14
Last Update Check: 2021-04-01 14:05:02
The new one is
A new Nagios XI update is available.
5.8.3 was released on March 31st, 2021.
Visit
www.nagios.com to obtain the latest update.
Latest Available Version: 5.8.3
Installed Version: 5.6.14
Last Update Check: 2021-04-01 10:24:03
I just deployed the ovf from the following link. Did a backup on the old server and restored it to the new one.
https://assets.nagios.com/downloads/nag ... 8.2-64.ova
OH shoot, its not the same version. can you provide me with a 5.6.14 centos 7 ovf.
please and thank you.
Guri
Re: Nagios UPGRADE: POST-UPGRADE: NDO post upgrade started.
Posted: Fri Apr 02, 2021 1:48 pm
by vtrac
Hi,
There is no 5.6.14 OVA for CentOS 7.
Here are the steps I am recommending:
- Spin up new server running EL7 latest
- Install the exact same version of XI that the old server has on the new server, no need to configure it, just install it (do not try to restore over different versions you will cause issues)
https://assets.nagios.com/downloads/nag ... -Linux.pdf
Code: Select all
Here's how to do manual install (please follow steps in URL above for more details):
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar zxf xi-5.6.14.tar.gz
cd /tmp/nagiosxi
cd nagiosxi
./fullinstall
- If you have a RAMDisk installed or are using RRDCacheD on the old system, set them up before restoring:
https://assets.nagios.com/downloads/nag ... giosXI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
- Backup the old/transfer to new/restore to the new
- Follow the After The Restore section from the backup/restore guide completely
- Since you're changing OS versions, run the restore_repair script from the backup/restore guide
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Example of restore command:
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh </full/path/to/backupfile.tar.gz>
Also remember to do this on your NEW server (VM) since you has changed Operating System Version / Architecture:
Code: Select all
cd /tmp/
wget https://assets.nagios.com/downloads/nagiosxi/scripts/restore_repair.sh
chmod +x restore_repair.sh
./restore_repair.sh
- Upgrade to latest on new RHEL 7.
https://assets.nagios.com/downloads/nag ... ctions.pdf
- Shutdown (or re-IP) the old, set the old IP on the new system so you don't have to update agent configs/FW rules
https://support.nagios.com/kb/article/c ... s-549.html
That's pretty much it. Please be aware of what a single XI license entitles you to:
https://support.nagios.com/kb/article.php?id=145
Regards,
Vinh