Does the NXI backup file contain the version?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Does the NXI backup file contain the version?

Post by gormank »

I'm looking at some old backup zipped tar files and need to know what version of NXI was backed up. This is so I can install the same version and then restore the backup.
Can the backed up version of NXI be determined from the files in the backup?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Does the NXI backup file contain the version?

Post by ssax »

The mysql/nagiosxi.sql MySQL dump should contain it, an alternative would be the /usr/local/nagiosxi/var/xi-sys.cfg in the nagiosxi.tar.gz file.

You could extract it, cd into the extracted directory and then run one of these:

- I would trust this one more as it's from the DB

Code: Select all

grep -Po "install_version','[\d\.]+'" mysql/nagiosxi.sql
OR:

Code: Select all

tar -axf nagiosxi.tar.gz usr/local/nagiosxi/var/xi-sys.cfg -O | grep xiver
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Does the NXI backup file contain the version?

Post by gormank »

Thanks, that's what I was looking for.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Does the NXI backup file contain the version?

Post by ssax »

No problem, glad to help! I have submit a feature-request to development requesting they add the version in the root of to the backup file for easier identification:

FR: XI - Add XI version to the root of the backup file for easy identification when extracting

Let us know when we're okay to lock this up and mark it as resolved.
Locked