Upgrading Redgate Monitor Upgrading Redgate Monitor

Upgrading Redgate Monitor

Before you start

Back up the Data Repository. Redgate Monitor upgrades the Data Repository schema during installation, and you can't roll the database back to a previous version afterward. Take a full backup before you begin. If you can't find the repository database, see Locating the Redgate Monitor database.

Download the installers. Download the installer for each machine you're upgrading before you start, so you're not waiting on downloads during the upgrade window. When an upgrade is available, Redgate Monitor shows a message above the product name banner with a link to the download.

Read the v14 migration guide. Version 14 has breaking changes that need some manual work, so review the migration guide to version 14 first. The main points are:

  • Redgate Monitor v14 can't be installed on Windows Server 2012 R2 or earlier, although monitoring those machines is still supported.
  • v14 no longer monitors Postgres 10, or unpatched SQL Server 2008 R2 and 2012 versions that don't support extended events properly.
  • Configuration, installation and log folders move from names containing SQL Monitor to Redgate Monitor, and the Windows service display names change. Update any automation that relies on the old paths or names.
  • The PowerShell module is renamed from RedgateSQM to RedgateMonitor, and the default command prefix changes from SqlMonitor to RedgateMonitor. Existing scripts need updating.
  • Some alert names and PowerShell alert types change, so check any webhooks, mail rules or scripts that depend on them.

Check your license. Upgrading to v14 needs a license that includes support and upgrades. Most customers have this, but see the licensing section near the end of this article if yours doesn't.

What the installer upgrades

The upgrade installer is the same one you used for the original installation. It replaces the components on the machine where you run it and keeps your current configuration.

If the Web Server and Base Monitor share a machine, one run upgrades both. If they're on separate servers, running the installer on the Web Server doesn't upgrade a Base Monitor on a different machine. You need to run the installer on each server.

Upgrade order and downtime

We recommend upgrading the Web Server first, then the Base Monitor straight afterward. Some downtime can't be avoided completely. If the Web Server and Base Monitor are on different versions, Redgate Monitor shows a version mismatch error, and the website can't connect to the Base Monitor until both are upgraded. Monitoring is also briefly interrupted while the Base Monitor upgrades.

To keep this as short as possible:

  1. Download both installers before you begin.
  2. Back up the Data Repository first.
  3. Start the Base Monitor upgrade as soon as the Web Server upgrade finishes.
  4. Choose a quieter time of day for the upgrade.

Upgrading on Windows

  1. Download the installer to the machine that hosts the Redgate Monitor Web Server.
  2. Run the installer and follow the wizard to reinstall the Web Server and Base Monitor.
  3. On the Set up Data Repository page, the Data Repository details are filled in for you. You don't need to set it up again.
  4. Under Connect to Data Repository database using, enter the credentials for an account with db_owner permissions. Redgate Monitor uses these only to upgrade the Data Repository schema.
  5. Click Next. The installer prompts you to back up the Data Repository. Confirm you've done this before continuing.
  6. Complete the rest of the wizard and click Install. Redgate Monitor tries to upgrade the database schema as soon as the Web Service is running.
  7. Open Redgate Monitor in your browser. If the upgrade is still running, you see a schema upgrade progress bar. When it succeeds, you see the Enter password page or the Global Overview.

If your Base Monitor is on a separate server, repeat the process there straight away. You need to re-enter the account credentials the Base Monitor uses to connect to the Data Repository.

If you've upgraded from v2, v3, v4 or v5, you also need to change the physical path to the Redgate Monitor web server in IIS to C:\Program Files\Red Gate\Redgate Monitor.

Upgrading on Linux

On Linux, the Base Monitor and the website are upgraded separately. The same order applies: upgrade the website first, then the Base Monitor straight afterward.

Website

  1. Extract the RedgateMonitor.Website.xxx.tar.gz file.
  2. Run the extracted ./install.sh script.

Base Monitor

  1. Extract the RedgateMonitor.BaseMonitor.xxx.tar.gz file.
  2. Run the extracted ./install.sh script.

The installers can also be run in unattended mode. By doing so, you agree to the Redgate Monitor EULA, and you need to pass the parameter --i-agree-to-the-eula.

Installations with multiple Base Monitors

These instructions apply to Windows installations only. Start the upgrade from the Redgate Monitor Web Server. The installer then asks whether to keep or overwrite your existing configuration, using a Keep existing base monitors checkbox.

  • Ticked (recommended): your multiple Base Monitors configuration is preserved. You can't change it during the upgrade, so the port number for the updated Base Monitor on that machine is grayed out.
  • Not ticked: the existing configuration is deleted, and the new one only includes the updated Base Monitor on the same machine.

After the Web Server upgrade, you must upgrade each remaining Base Monitor to fully update the system.

If something goes wrong

If the upgrade fails, read the error message highlighted on the page. These messages come from SQL Server, not Redgate Monitor.

The most common cause of a failed Data Repository upgrade is an account without enough permission to modify the database. Enter an account with db_owner permissions and click Retry Upgrade. Redgate Monitor only uses these credentials to upgrade the database schema.

If you see a version mismatch error after upgrading one machine, check that the Web Server and Base Monitor are both on the same version. If they aren't, upgrade the one that's behind.

If you're still stuck, contact Support and include the error message you see.

If your license doesn't include support and upgrades

Only upgrade to v14 if your current license includes a valid support and upgrades package. Without it, or if reactivation fails, Redgate Monitor deletes the serial numbers from the Configuration > Licensing page and starts a 14-day trial of v14. You can't roll back once that happens.

In that case, we recommend installing a trial of v14 on a separate machine first. You can find your serial numbers at red-gate.com/myserialnumbers, and sales@red-gate.com can help if you'd like to add a support and upgrades package. See supported platforms for the full requirements.


Related documentation

Add comment

Please sign in to leave a comment.