Home » Categories » Products » Nagios Network Analyzer » Installation

Nagios Network Analyzer - Offline Installation

Overview

This KB article will show you how to install Nagios Network Analyzer in an offline environment.

An offline environment is described as one that does not have direct internet access. Normally the server you are installing Nagios Network Analyzer onto requires internet access to install packages from repositories.

This KB article shows you how to modify the installation so it does not require internet access. However you will still need to download some packages on a computer that has internet access and then transfer those packages to your offline server.

This KB article was written using Nagios Network Analyzer 2.4.0. Future versions may have additional components that are not addressed in this KB article and will need to be taken into consideration if the process does not work as expected.

 
Warning

Nagios Enterprises provides this KB article to customers in good faith. However an installation of Nagios Network Analyzer using this method is not officially supported by Nagios Enterprises, future problems caused by using this method is beyond our control. Support may be limited if problems cannot be reproduced on a normal installation of Nagios Network Analyzer.

 

Requirements

This method requires two servers.

  • Internet facing computer

    • This computer is required for downloading specific files that are normally required by the installation package

    • Once these files have been downloaded, this computer will need to be able to transfer them to the destination server

 

  • Offline Server

    • This is the server that you want to perform the offline install on

    • 64-bit
    • It must be a clean minimal build of [ CentOS | RHEL | Oracle Linux | Debian | Ubuntu ]

    • The server will require access to offline repositories of:

      • Operating System Repositories

      • EPEL Repository [ CentOS | RHEL | Oracle Linux ]

      • If your server is running RHEL you also need the Optional Channel Repo
  • This guide will refer to this server as Offline Server

 

 

Download Required Files

On your internet facing computer you need to download the following files:

 

Nagios Network Analyzer

Download the Nagios Network Analyzer tarball:

https://assets.nagios.com/downloads/nagios-network-analyzer/nagiosna-latest.tar.gz

All versions of Nagios Network Analyzer can be found here:

https://assets.nagios.com/downloads/nagios-network-analyzer/versions.php

 

wkhtmltox

The wkhtmltox package is also required. There is a separate download depending on your Operating System version:

  

RHEL 7 | CentOS 7 | Oracle Linux 7

https://assets.nagios.com/downloads/nagiosxi/packages/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm

 

RHEL 8 | CentOS 8 | Oracle Linux 8

https://assets.nagios.com/downloads/nagiosxi/packages/wkhtmltox-0.12.5_el8.x86_64.rpm

 

Debian 9/10 | Ubuntu 16/18/20

The wkhtmltox package is included as part of the standard repositories and no extra download is required.

 

Once you have downloaded the Nagios Network Analyzer tarball and the wkhtmltox package you need to transfer them to your offline server into the /tmp/ location. Steps on how to do this are not provided here, however you can use a program like WinSCP to transfer them.

 

 

Offline Server

Establish a terminal session to the offline server as the root user.

 

As mentioned under the requirements section, the offline server will require access to offline yum repositories of:

  • Operating System Repositories

  • EPEL Repository [ CentOS | RHEL | Oracle Linux ]

  • If your server is running RHEL you also need the Optional Channel Repo

 

Run these commands to install the wkhtmltox package:

RHEL | CentOS |  Oracle Linux

cd /tmp
yum install -y wkhtmltox*.rpm

 

Debian 9/10| Ubuntu 16/18/20

apt-get -y install wkhtmltopdf

 

 

Next step will be to modify the fullinstall script so it doesn't require internet access. The required modifications will be explained first and underneath will be some commands that will automatically make these changes for you.

 

Comment out this line as EPEL will already have been enabled as an offline repository:

add_yum_repo "epel"

 

Remove wkhtmltopdf from the following line:

run_steps prereqs sourceguardian timezone rrdtool build_nfdump library_path nagiosna backend db firewall selinux install_mibs install_sudo install_cron wkhtmltopdf webroot daemons

 

These commands will make the changes described above:

cd /tmp
tar xzf nagiosna-latest.tar.gz
cd /tmp/nagiosna
sed -i '/add_yum_repo "epel"/s/^/#/' fullinstall
sed -i 's/wkhtmltopdf\s//g' fullinstall

 

Now run this command to install Nagios Network Analyzer:

./fullinstall

 

Wait for the install to complete. If it is successful it should end with:

Nagios Network Analyzer Installation Success!

You can finish the final setup steps for Nagios Network Analyzer by visiting:
http://xxx.xxx.xxx.xxx/nagiosna/

 

Proceed to the URL provided in the output above to complete the Nagios Network Analyzer installation.

 

 

Additional Notes

Certain components of Nagios Network Analyzer require an internet connection. For example the Home page has the check for updates functionality. These will simply report errors like "An error occurred while trying to fetch the Nagios Core feed", which can be ignored.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios Network Analyzer - Conversion for VirtualBox
Viewed 2935 times since Thu, Mar 16, 2017
Nagios Network Analyzer - Logging In
Viewed 2785 times since Wed, Jul 19, 2017
Nagios Network Analyzer - Manual Installation Instructions
Viewed 4545 times since Tue, Jul 7, 2015
Nagios Network Analyzer - How To Install Using VMware
Viewed 3337 times since Wed, Jul 19, 2017
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 9654 times since Tue, Jan 26, 2016
Nagios Network Analyzer - How To Create A Nagios Network Analyzer Instance In The Amazon EC2 Cloud Environment
Viewed 2865 times since Thu, Jan 28, 2016
Nagios Network Analyzer - How To Select A Download
Viewed 2926 times since Wed, Jul 19, 2017
Nagios Network Analyzer - License Entitlements
Viewed 3065 times since Thu, Nov 7, 2019