---
title: "Offline installation"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/6.11.7/install/offline-installation/index.html"
---
This guide is for users of [Supported Operating Systems](https://docs.itrsgroup.com/docs/opsview/6.11.7/prerequisites/compatibility-matrix/supported-os/index.html) without direct access to the Internet and is geared towards a base install.

## Planning

Take a copy of our public Opsview Monitor repository and transfer it to a server on your target network, to create a repository mirror.


**Note**


The repository  is not browsable; a mirroring process is the best way to download all of the packages.



Setting up the mirror is outside the scope of this documentation, but we suggest using a tool to achieve this such as [reposync](https://linux.die.net/man/1/reposync) for RHEL, and OL, or [apt-mirror](http://manpages.ubuntu.com/manpages/focal/man1/apt-mirror.1.html) for Debian and Ubuntu.

The base URLs for mirroring our repositories are:

```
# RHEL/OL
https://downloads.opsview.com/opsview-commercial/6.11/yum/<OS>/<VERSION>/x86_64
# e.g.
https://downloads.opsview.com/opsview-commercial/6.11/yum/rhel/7Server/x86_64

# Ubuntu/Debian
https://downloads.opsview.com/opsview-commercial/6.11/apt
```

Additional OS packages may be installed during this process, so you may also need to provide access to mirrored or local OS repositories.

For RHEL 7/8/9 systems, ensure the subscription manager is configured to allow system repositories. Verify that the `disable_system_repos` option is set to `0` in the `/etc/dnf/plugins/subscription-manager.conf` file on each system.

The `root` user must be able to run `sudo` without a password on all servers in the Opsview deployment.

Make sure you check the [software requirements](https://docs.itrsgroup.com/docs/opsview/6.11.7/prerequisites/software-requirements/index.html), particularly the hostname requirements.

### Set up offline repository

This is a simple example of setting up a local repository.


**Note**


The setup of the repo assumes that the server pulling the repository files is on the same OS or Arch as the Opsview install target server.

Additionally, if you require a tarball, contact [Opsview Support](https://support.itrsgroup.com/hc/en-us) and specify the exact Opsview version you are running; if unknown, check the `opsview-deploy` package on your orchestrator. Once received, create a directory such as `/var/tmp/local_opsview_repo` and extract the tarball there to expose the `.rpm` and `.deb` packages.



1. Ensure you have the package to `createrepo` installed:

    ```
    yum install yum-utils createrepo
    ```

2. Set up repo (same OS or Arch as the Opsview target server):

    ```
    curl -sLo- https://deploy.opsview.com/6.11 | sudo bash -s -- -O repo
    ```

3. Obtain the `repoid` (first line in the file). You only need the information inside the square brackets:

    ```
    head -n1 /etc/yum.repos.d/opsview.repo
    ```

4. Create local area to store Opsview packages.

    ```
    reposync  -l  --repoid=<repoid-from-head> --download_path=/var/tmp/local_opsview_repo

    RHEL 8 and RHEL 9 you will need to run:
    reposync -p /var/tmp/local_opsview_repo --download-metadata --repo=<repoid-from-head>
    ```

5. Inform the package manager of the Opsview files.

    ```
    createrepo -v /var/tmp/local_opsview_repo
    ```

6. Add a repo source file.

    ```
    vim /etc/yum.repos.d/localrepo.repo

    [localrepo]
    name=Opsview Local Repository
    baseurl=file:///var/tmp/local_opsview_repo
    gpgcheck=0
    enabled=1
    ```

7. Refresh the package manager cache.

    ```
    yum clean all
    yum makecache
    ```

8. You also need to take a copy of the installation script (and verify its checksum) before transferring this to the target server:

    ```
    curl -sLo- https://deploy.opsview.com/6 > install_opsview
    sha256sum install_opsview
    ```

9. Ensure the returned string matches the following:

    ```
    105769006c29d4d4557d7a5a37d79c85a535f1c9b3b7082ee510c84f17268f92
    ```

## Installation


**Note**


All of these steps should be run as the `root` user.



1. Using the Opsview Monitor deploy script downloaded earlier, install the initial package set.  Specify a suitable  `<password>` to use with the Opsview Monitor `admin` account here.

    ```
    bash ./install_opsview -p <password> -O fire,boot
    ```

    This will make use of both the mirrored OS repository and the mirrored Opsview repository you have previously set up and configured.

2. Amend the file `/opt/opsview/deploy/etc/opsview_deploy.yml` and ensure all hostnames detected have the domain specified on them, for example, assuming the hostname is `opsmonitor`:

    ```
    orchestrator_hosts:
    opsmonitor.example.com:
        ip: 192.168.0.10
    ```


**Note**


Change `example.com` to match your own domain.



3. Amend the file `/opt/opsview/deploy/etc/user_vars.yml` and add in the following appropriate line for your OS to specify the URL to your local Opsview Monitor package repository mirror:

    ```
    # RHEL/OL
    opsview_repository_str_yum: 'http://my.repo/$basearch/'
    # Debian/Ubuntu
    opsview_repository_str_apt: 'deb http://my.repo/ trusty main'
    # Pre-flight check for the repository
    check_uri_opsview_repository: 'http://my.repo/'
    ```

    If you intend to use optional modules, you can enable them by adding lines as follows (note: these will still need  an appropriate license to enable them) in the same file:

    ```
    opsview_module_netaudit: True
    opsview_module_netflow: True
    opsview_module_servicedesk_connector: True
    opsview_module_reporting: True
    opsview_module_snmp_traps: True
    ```

4. Continue the installation using the following command:

    ```
    bash ./install_opsview -p <password> -O inst
    ```


**Note**


If a more advanced setup is required then take a look the [Advanced Automated Installation](https://docs.itrsgroup.com/docs/opsview/6.11.7/install/advanced-installation/index.html) documentation first.



5. Run the `post-install` configuration step:

    ```yaml
    /opt/opsview/deploy/bin/opsview-deploy lib/playbooks/setup-monitoring.yml
    ```

## Activation

Once successfully installed, perform a manual activation by following the steps on [Managing your Subscription](https://docs.itrsgroup.com/docs/opsview/6.11.7/support/managing-your-subscription/index.html).

After activation is successful, run:

```
/opt/opsview/deploy/bin/opsview-deploy lib/playbooks/setup-opsview.yml
```

This will check your newly activated license and ensure all appropriate modules are installed and configured for your use.

## Logging in

During the installation, a single administrative user will have been created. The credentials for this user are:

```
username: admin
password: <password supplied during installation>
```

After the system is activated, carry out a reload by navigating to **Configuration > [Apply Changes](https://docs.itrsgroup.com/docs/opsview/6.11.7/configuration/apply-changes/index.html)** and pressing the **Apply Changes** button.


