XI Upgrade without Internet
XI Upgrade without Internet
Our XI instance does not have internet access. What is the best way to upgrade manually? I noticed that the upgrade script will go out and download components.
Re: XI Upgrade without Internet
After a bit of looking through the script. I found a way to comment out the download and let the script process the required phantomjs package.
For anyone else looking to do this, basically you will have to run the script and find out where it is stopping and what it is downloading and update accordingly. I have edited my upgrade script for the following lines to allow me to manually download and placing the required package in /tmp.
Basically commented out two lines.
#rm -rf phantomjs* #(edited to prevent file removal)
#wget http://assets.nagios.com/downloads/nagi ... ackage.tar #(Commented out to prevent download)
For anyone else looking to do this, basically you will have to run the script and find out where it is stopping and what it is downloading and update accordingly. I have edited my upgrade script for the following lines to allow me to manually download and placing the required package in /tmp.
Code: Select all
if [ "$oldversion" -lt 409 ]; then
# update to auto_rescheduling_window
sed -i 's/^auto_rescheduling_window=180/auto_rescheduling_window=45/g' /usr/local/nagios/etc/nagios.cfg
# Install phantomjs - for Highcharts export server
(
cd /tmp
arch=`uname -m`
if [ "$arch" == "x86_64" ]; then
package="phantomjs-1.9.8-linux-x86_64"
else
package="phantomjs-1.9.8-linux-i686"
fi
echo "Installing PhantomJS..."
# Delete the old archive
#rm -rf phantomjs* #(edited to prevent file removal)
# Download the file
#wget http://assets.nagios.com/downloads/nagiosxi/packages/$package.tar #(Commented out to prevent download)
tar xf $package.tar
#rm -rf phantomjs* #(edited to prevent file removal)
#wget http://assets.nagios.com/downloads/nagi ... ackage.tar #(Commented out to prevent download)
Re: XI Upgrade without Internet
OptimusB - thanks for the good information, as always.