XI Upgrade without Internet

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

XI Upgrade without Internet

Post by OptimusB »

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.
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

Re: XI Upgrade without Internet

Post by OptimusB »

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.

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
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)
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: XI Upgrade without Internet

Post by jolson »

OptimusB - thanks for the good information, as always.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked