Page 1 of 1

Upgrade Nagvis from 1.5.9 to 1.9.8 on Nagios XI 5.5.7

Posted: Mon Jul 08, 2019 7:14 am
by ghugon
Hi,

For some internal reasons that are not relevant anymore, Nagvis was downgraded from 1.9.8 to 1.5.9.
I'd like to update it back to 1.9.8.
Will I be fine running the upgrade script or will I have an issue ?

Thanks in advance.
Best regards.

Re: Upgrade Nagvis from 1.5.9 to 1.9.8 on Nagios XI 5.5.7

Posted: Mon Jul 08, 2019 11:52 am
by lmiltchev
You should be able to remove the old version of NagVis by going to Admin > Manage Components, and clicking on the "Delete" button. Then, you could rerun the upgrade script with the "-f" flag, which will force reinstalling all of the addons (including NagVis):

Code: Select all

cd /tmp/nagiosxi
./upgrade -f
Important: Prior to removing the old NagVis and installing the "new" version, make backups of all NagVis configs, custom maps, whatnot. Backup Nagios XI, so that you could restore from the backup if things don't go as planned. If this is a VM, you can create a snapshot as well (just in case).

Here's our documentation on backing up and restoring Nagios XI:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Hope this helps.

Re: Upgrade Nagvis from 1.5.9 to 1.9.8 on Nagios XI 5.5.7

Posted: Tue Jul 09, 2019 3:11 am
by ghugon
I'll make sure to backup everything, XI is indeed on a VM so I'll make sure to create a snapshot.

Are yout talking about running the nagios upgrade script ? (Not sure where it is btw, it's not in /usr/local/nagiosxi/scripts/.
Because I was actually thinking about running the nagvis upgrade script (/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh).
Do you think that'll work ?

Re: Upgrade Nagvis from 1.5.9 to 1.9.8 on Nagios XI 5.5.7

Posted: Tue Jul 09, 2019 8:16 am
by lmiltchev
No, I was talking about the "upgrade" script inside the original nagiosxi install directory. If you no longer have it, you could do:

Code: Select all

cd /tmp
rm -rf xi* nagiosxi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.7.tar.gz
tar xvf xi-5.5.7.tar.gz
cd nagiosxi
./upgrade -f