Page 1 of 1

Support ticket query

Posted: Mon Aug 02, 2021 9:02 am
by mejokj
Hello,

I have issue with support ticket login.

Below is the last reply of my support ticker regarding one issue.

+++++++++++++++++
ve been informed that offline install isn't available for RHEL 8 or CentOS 8. It's only Cent7 or RHEL7 that can do an offline install.

Likewise, the RHEL8 repos don't contain 5.5.10. Installing 5.5.10 from source also isn't an option because it's too old to support RHEL 8.

This leaves us with installing the latest Nagios XI on the RHEL8 server, then migrating the configuration database over to the new server.

As far as migrating goes, the simplest solution is probably to deploy the new server with Nagios XI installed (simplest way is probably to install using a package manager - instructions here: https://repo.nagios.com/ - OR use one of our VMWare images available here).

Then export the configuration from the old machine, and import them into the new one following these steps:

Step 1: Exporting the Configuration Database
https://assets.nagios.com/downloads/nag ... tabase.pdf
Step 2: Using the Config Import Prep Tool (Note: You might be able to get away with skipping this step if you're going from an XI version with the same major and minor version number, e.g. 5.8.0 -> 5.8.1, or 5.7.3 -> 5.7.5.)
https://assets.nagios.com/downloads/nag ... p-Tool.pdf
Step 3: Importing Core Configuration Files Into Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf


Simplification of 2nd and 3rd Steps
There's a simpler route you can take in the 2nd and 3rd step, however, if you use these commands on the new server to copy and prep the old config all in one go:

# copy config from old server
rsync -SHav --delete <MY OLD SERVER IP>:/usr/local/nagios/etc/ /usr/local/nagios/etc/cfgprep/
# run the import prep tool
mkdir -p /usr/local/nagios/etc/import
cd /usr/local/nagios/etc/import
find ../cfgprep -type f -name '*.cfg' -exec php /usr/local/nagiosxi/tools/xiprepimport.php {} \;


Then when importing (see Step 3), all you have to do is select the "Show only import directory" checkbox, then select all the files you see.

++++++++++++


I have done the following steps but it shows the attached screenshot image error after apply configuration

Re: Support ticket query

Posted: Mon Aug 02, 2021 2:22 pm
by benjaminsmith
Hi mejokj,

My apologies for the inconvenience, the ticketing system is working now. Please let me know if you have any issues logging in again.

I passed on your reply to Dan and he will follow up on the ticket.

Thanks,
Benjamin

Re: Support ticket query

Posted: Mon Aug 02, 2021 3:31 pm
by dchurch
There was a mistake in the instructions I gave you; the instructions didn't account for some static configuration that shouldn't be imported into the database. Those files came across in the directories /usr/local/nagios/etc/cfgprep/{import,cfgprep,static}

We can recover your system without having to nuke and re-import if you:

1. Navigate to Config => Core Config Manager
2. Open Time Periods
3. Select xi_timeperiod_none and select "Delete"

Then, instead of using Apply Config, try going to to Config (top menu) -> Core Config Manager => Config File Management (left menu), then running Delete, Write, then Verify.