Azure Recovery
Pack Assetsβ
Templatesβ
The Centreon Plugin Pack Azure Recovery brings a host template:
- Cloud-Azure-Management-Recovery-Backup-custom
It brings the following service templates:
Service Alias | Service Template | Service Description | Default |
---|---|---|---|
Backup-Items-Status | Cloud-Azure-Management-Recovery-Backup-Items-Status-Api | Check items backup state for a given vault | X |
Backup-Jobs-Status | Cloud-Azure-Management-Recovery-Backup-Jobs-Status-Api | Check backup jobs state for a given vault | X |
Replication-Health | Cloud-Azure-Management-Recovery-Replication-Health-Api | Check replication and failover health for a given vault | X |
Discovery rulesβ
The Centreon Plugin Pack Azure Recovery includes a Host Discovery provider to automatically discover the Azure instances of a given subscription and add them to the Centreon configuration. This provider is named Microsoft Azure Recovery Vaults:
This discovery feature is only compatible with the api custom mode. azcli is not supported.
More information about discovering hosts automatically is available on the dedicated page.
Collected metrics & statusβ
- Backup-Items-Status
- Backup-Jobs-Status
- Replication-Health
Metric Name | Unit |
---|---|
Backup item status |
Metric Name | Unit |
---|---|
Backup job status |
Metric Name | Unit |
---|---|
Replication health | |
Failover health |
Prerequisitesβ
Please find all the prerequisites needed for Centreon to get information from Azure on the dedicated page.
Setupβ
- Online License
- Offline License
- Install the plugin package on every Centreon poller expected to monitor Azure Recovery resources:
yum install centreon-plugin-Cloud-Azure-Management-Recovery-Api
- On the Centreon web interface, on page Configuration > Plugin Packs, install the Azure Recovery Centreon Plugin Pack.
- Install the plugin package on every Centreon poller expected to monitor Azure Recovery resources:
yum install centreon-plugin-Cloud-Azure-Management-Recovery-Api
- Install the Azure Recovery Centreon Plugin Pack RPM on the Centreon central server:
yum install centreon-pack-cloud-azure-management-recovery
- On the Centreon web interface, on page Configuration > Plugin Packs, install the Azure Recovery Centreon Plugin Pack.
Configurationβ
Hostβ
- Log into Centreon and add a new host through Configuration > Hosts.
- In the IP Address/DNS field, set the following IP address: 127.0.0.1.
- Apply the Cloud-Azure-Management-Recovery-Backup-custom template to the host.
- Once the template is applied, fill in the corresponding macros. Some macros are mandatory. These mandatory macros differ depending on the custom mode used.
- Azure Monitor API
- Azure AZ CLI
Mandatory | Macro | Description |
---|---|---|
X | AZUREAPICUSTOMMODE | Custom mode api |
X | AZUREVAULTNAME | Backup vault name |
X | AZURECLIENTID | Client ID |
X | AZURECLIENTSECRET | Client secret |
X | AZURERESOURCEGROUP | Resource group name |
X | AZURESUBSCRIPTION | Subscription ID |
X | AZURETENANT | Tenant ID |
PROXYURL | Proxy URL |
Mandatory | Macro | Description |
---|---|---|
X | AZURECLICUSTOMMODE | Custom mode azcli |
X | AZURERESOURCEGROUP | Resource group name |
X | AZURESUBSCRIPTION | Subscription ID |
How to check in the CLI that the configuration is OK and what are the main options for?β
Once the plugin is installed, log into your Centreon poller's CLI using the
centreon-engine user account (su - centreon-engine
) and test the plugin by
running the following command:
/usr/lib/centreon/plugins//centreon_azure_management_recovery_api.pl \
--plugin=cloud::azure::management::recovery::plugin \
--mode=backup-jobs-status \
--custommode='api' \
--resource-group='GPBACK1234' \
--subscription='xxxxxxxxx' \
--tenant='xxxxxxxxx' \
--client-id='xxxxxxxxx' \
--client-secret='xxxxxxxxx' \
--proxyurl='' \
--vault-name='vault123' \
--warning-status='' \
--critical-status='%{status} eq "Failed"' \
--warning-total-completed='' \
--critical-total-completed='' \
--warning-total-failed='' \
--critical-total-failed='' \
--warning-total-inprogress='' \
--critical-total-inprogress=''
The expected command output is shown below:
OK: Backup Job 'backupjob456' Status 'Completed' [Duration: 41m 12s]
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins//centreon_azure_management_recovery_api.pl \
--plugin=cloud::azure::management::recovery::plugin \
--mode=backup-jobs-status \
--help
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins//centreon_azure_management_recovery_api.pl \
--plugin=cloud::azure::management::recovery::plugin \
--list-mode
Troubleshootingβ
Please find the troubleshooting documentation for the API-based plugins in this chapter.