In this section, we describe how to prepare the Opsview VMware Virtual Machine (VM) for an Opsview Monitor installation.The Opsview VMware VM provides a demonstration package to allow easy evaluation of the Opsview Monitor software. A Opsview Monitor subscription can be used in a production environment; the image can be downloaded from the Opsview Monitor website.
Our VM uses the Virtual Machine Disk (VMDK) format and is configured for use with the VMware Player and VirtualBox. If you plan to use our VM on a VMware ESX server, you may need to use the VMware vCenter Converter.
Note: Additional information about the converter is located on the VMware website.
The VM is configured to use Dynamic Host Configuration Protocol (DHCP) to initially obtain an IP address from the network. However, this may not be suitable for your installation. As such, we'll explain how you can change the IP address of the virtual machine later in this section. First, you will need to log in to your virtual machine. In VMware Player you are prompted automatically when the VM is started. If you're using VMware Server you may need to connect to the VMware console and then select the Opsview VM from the inventory. In both instances you should be presented with a log in prompt when the VM has booted.
So, to set a static IP address, you need to log in with the following default credentials:
- Username: conf
- Password: conf
opsview-appliance login: conf
Password: [hidden] ...
At the command line, run the command netconf where you will then be prompted for the network settings you wish to use for the virtual machine. Responding 'Yes to Use these settings' will result in the network changes being made and taking immediate effect ' you will receive a confirmation message, "Network setup complete". You should now be able to connect to the Opsview sever using the IP address provided in the example below, namely 192.168.0.100:
Enter IP address (xxx.xxx.xxx.xxx): 192.168.0.100 Enter subnet mask (255.255.255.0): 255.255.255.0 Enter default gateway: 192.168.0.254 Enter DNS servers (space separated): 192.168.0.1 192.168.0.2 Enter Mail relay host: example.mail.com Use these settings (y/n)? y
Once you are able to reach the Opsview web interface (through TCP port 80) on your VM, you will be prompted to log in. The Opsview Monitor installation creates a default administrator with default credentials as shown below ' use the username and password to access your default Opsview account.
- Username: admin
- Password: initial
We have simplified the management of the server by including Webmin with the virtual appliance ' it can be accessed on port 10000. In our earlier example, in 'Initial configuration,' we set up a new IP address and, as such, you would access Webmin using 192.168.0.100:10000. Likewise, we also provided default credentials that need to be used when prompted to log in. The first time your browser connects to the interface, you will be asked to accept a Secure Socket Layer (SSL) certificate ' we recommend that you should permanently accept it.
If you need root privileges, log in to the server using ssh as the user 'conf' and use the command as shown in the example below:
sudo su -
Note: Making changes as the root user may inadvertently render your VM inoperable, so exercise caution.
Network Time Protocol (NTP) can be used to synchronize the time of your VM with a time server; the NTP daemon can be installed by running the command as shown below:
apt-get install ntp
If you have the most up-to-date version of the NTP daemon you will receive the notification "ntp is already the newest version". You will need to edit /etc/ntp.conf to configure your chosen NTP server. We would recommend using the NTP sever on your Local Area Network (LAN). Alternatively, there are numerous NTP servers openly available for public use across the Internet.