Old config import to new version NagiosXI ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Old config import to new version NagiosXI ...

Post by xpertech »

For some reason we want to keep version 5.4.11,
is it possible and how 5.4.11 config import to 5.6.3?

we had tried 5.4.11 config import to 5.6.3 without success, wonder if something need to be aware?

is there anything need to be aware when other old version config import to new version?

will the NagiosXI backend database need to be aware? (it seems that old version NagiosXI using postgresql while new version using mariadb)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Old config import to new version NagiosXI ...

Post by lmiltchev »

For some reason we want to keep version 5.4.11,
is it possible and how 5.4.11 config import to 5.6.3?
What is your objective - to keep the "old" 5.4.11 server, while testing the "new" 5.6.3 one (with the old configs imported) until you make sure the new server is running fine (then get rid of the old one)? Why not just upgrade to 5.6.3? Can you explain?
we had tried 5.4.11 config import to 5.6.3 without success, wonder if something need to be aware?
Can you describe all of the steps you took to do the import? Did you follow the correct import order:

Code: Select all

Commands > Time Periods > Contact Templates > Contacts > Contact Groups > Host Templates > Hosts > Host Groups > Service Templates >Services > Service Groups
while verifying the configuration after each import via the Config File Management tool? What is the specific error that you see in the GUI?
will the NagiosXI backend database need to be aware? (it seems that old version NagiosXI using postgresql while new version using mariadb)
You are not going to be able to import the data that is stored in the nagiosxi database, unless you do a backup and restore, using the document below:

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

New installs will use mysql/mariadb, but the upgrades will keep using postgresql. If you need to use mysql/mariadb instead of postgresql, you could try following the KB article below:

https://support.nagios.com/kb/article/c ... i-560.html

Do all of the necessary backups, snapshots, etc. before attempting to convert PostgreSQL to MySQL.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Old config import to new version NagiosXI ...

Post by xpertech »

Yes, my objective is to keep the "old" 5.4.11 server, while testing the "new" 5.6.3 one (with the old configs imported) until I make sure the new server is running fine (then get rid of the old one).

Why not just upgrade to 5.6.3? because the 5.4.11 server was upgraded from several earlier versions, but sometimes there're some strange things happened(cpu went high/a lot of monitoring alert in same time/...), so I think if I install a fresh new server with new version, and then import old configs, maybe it will more steady?!

if this reason acceptable, what steps will you recommend?
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Old config import to new version NagiosXI ...

Post by xpertech »

if I install a fresh new NagiosXI with new version, can I backup old version NagiosXI and restore to the new one? or I have to import old configs to new one?

is there a document I can refer?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Old config import to new version NagiosXI ...

Post by lmiltchev »

is there a document I can refer?
Yes, the backup and restore document - https://assets.nagios.com/downloads/nag ... ios-XI.pdf.

Basically, you need to do the following:

1. Create a backup on your "old" server:

Code: Select all

/usr/local/nagiosxi/scripts//backup_xi.sh
2. Install Nagios XI 5.4.11 on the "new" server.

3. Copy over the backup to the new server:

Code: Select all

scp /store/backups/nagiosxi/xxx.tar.gz root@<ip address>://store/backups/nagiosxi
4. Restore from the backup:

Code: Select all

/usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/xxx.tar.gz
5. Upgrade Nagios XI to 5.6.3:

Code: Select all

cd /tmp
rm -rf xi* nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.3.tar.gz
tar xvf xi*
cd nagiosxi
./upgrade
Note: These steps are to be used if you performed a "manual" install. Let us know if this is not the case, e.g. you installed XI using our RPM installer.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked