If you are looking at upgrading/migrating your current installation, please refer to Before moving to Opsview Monitor 6.x to see which page is better suited for your scenario.
This page describes the procedure to undertake an automated fresh installation of the Opsview Monitor software, which is our recommended method.
A number of considerations:
- The automated installation method will always install the latest available version of Opsview Monitor.
- The automated installation method assumes you have a new operating system installation since the Opsview Monitor installation may overwrite or remove some existing packages and configuration(s).
- Configure a hostname which can be resolved by the host's DNS settings, for example
opsview.example.comshould resolve to the IP of the server.
We recommend you update all your hosts to the latest OS packages before installing Opsview.
Please refer to this page.
Please ensure that any proxies are unset and Opsview addresses are whitelisted - information here
curl -sLo- https://deploy.opsview.com/6 | sudo bash -s -- -p PASSWORD -s SOFTWARE_KEY -y
- -p: setup the admin password
- -s: activate the software with the provided key
- -y: skip any installation prompts
To learn about all the options available, you can check the help flag:
curl -sLo- https://deploy.opsview.com/6 | sudo bash -s -- -h
You can also verify the script before running it by comparing the checksum you get with
curl -L https://deploy.opsview.com/6 > opsview_deploy sha256sum opsview_deploy
Ensure the returned string matches the following:
You can then run the installation (and optionally provide the arguments):
sudo bash ./opsview_deploy -p PASSWORD -s SOFTWARE_KEY -y
Nginx is designed to use only one file that is a combination of your SSL Certificate (server.crt, if you have not renamed it) and your IntermediateCA file. Therefore you need to combine the your SSL certificate file and the IntermediateCA.crt into one single concatenated file in order for Nginx to start successfully.
If you find that your homepage/web-page isn't loading up correctly please consider this change may need to be made for Nginx to start - the Opsview component that starts Nginx is opsview-webserver
cd /opt/opsview/webapp/etc/ssl/ cp -p server.crt server.crt.backup
Replace the below file names with appropriately:
cat SSL_Certificate_filename IntermediateCA.crt_filename > server.crt
Now that this is complete, opsview-webserver should start without issue.
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 => [System] => Apply Changes and pressing the Apply Changes button.
If you encounter any problems with the installation, it is safe to rerun the command again.
You are also able to continue the installation from a checkpoint for the following reasons:
- Cancelled installations, which can be done by pressing CTRL+C
- Failed installations, e.g. a network connection failure
The automated installation consists of 5 steps that can be partially executed:
|Step name||Description||Output from Automated Installation script|
|repo||Add Opsview package repository|
|boot||Install and configure our deploy tool|
|fire||Configure the firewall rules for the Web UI. For a full list of ports and extra manual firewall rules you need, see List of Ports|
|inst||Use the deploy tool to install Opsview|
With that in mind, we can then use the -A and -O flags to install up to a certain step or install only that step respectively. While the examples before would run all the five steps in order, this one would rerun all 5 steps:
curl -sLo- https://deploy.opsview.com/6 | sudo bash -s -- -A inst
This second example would just run the firewall step:
curl -sLo- https://deploy.opsview.com/6 | sudo bash -s -- -O fire
If you entered your software key incorrectly (which will fail at the inst step), the command below will remove the incorrect key, re-create the configuration file and re-run the installation:
sudo rm /opt/opsview/deploy/etc/user_vars.yml curl -sLo- https://deploy.opsview.com/6 | sudo bash -s -- -p PASSWORD -s SOFTWARE_KEY -y -O boot,inst
Updated 8 months ago