Amazon Backup Vault
Pack Assetsβ
Templatesβ
The Centreon Plugin Pack Amazon Backup Vault brings a host template:
- Cloud-Aws-Backup-Vault-custom
It brings the following Service Template:
Service Alias | Service Template | Service Description | Default |
---|---|---|---|
Backup-Vault-Jobs-Status | Cloud-Aws-Backup-Vault-Jobs-Status-Api | Check AWS Backup Vault jobs status | X |
Discovery rulesβ
The pack provides a discovery rule to automatically discover Backup vault resources:
More information about the Host Discovery module is available in the Centreon documentation: Host Discovery
Collected metrics & statusβ
- Backup-Vault-Jobs-Status
Metric Name | Description |
---|---|
backup.jobs.completed.count | Number of Backup vault jobs completed for the specified timeframe. Default : last 24h. |
backup.jobs.failed.count | Number of Backup vault jobs failed for the specified timeframe. Default : last 24h. |
backup.jobs.expired.count | Number of Backup vault jobs expired for the specified timeframe. Default : last 24h. |
copy.jobs.completed.count | Number of Copy vault jobs completed for the specified timeframe. Default : last 24h. |
copy.jobs.failed.count | Number of Copy vault jobs failed for the specified timeframe. Default : last 24h. |
recovery.jobs.expired.count | Number of Recovery vault jobs completed for the specified timeframe. Default : last 24h. |
Prerequisitesβ
AWS Configurationβ
Configure a service account (access/secret key combo) for which the following privileges have to be granted:
AWS Privilege | Description |
---|---|
backup:ListBackupVaults | Get Backup Vault Names. |
cloudwatch:getMetricStatistics | Get metrics from the AWS/EC2 namespace on Cloudwatch. |
Plugin dependenciesβ
To interact with Amazon APIs, you can use either use the awscli binary provided by Amazon or paws, a Perl AWS SDK (recommended). You must install it on every poller expected to monitor AWS resources.
For now, it is not possible to use paws if you are using a proxy to reach AWS Cloudwatch APIs.
- perl-Paws-installation
- aws-cli-installation
yum install perl-Paws
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Setupβ
- Online License
- Offline License
- Install the Centreon Plugin package on every Centreon poller expected to monitor AWS Backup Vault resources:
yum install centreon-plugin-Cloud-Aws-Backup-Api
- On the Centreon Web interface, install the Amazon Backup Vault Centreon Plugin Pack on the Configuration > Plugin Packs page.
- Install the Centreon Plugin package on every Centreon poller expected to monitor AWS Backup Vault resources:
yum install centreon-plugin-Cloud-Aws-Backup-Api
- Install the Amazon Backup Vault Centreon Plugin Pack RPM on the Centreon Central server:
yum install centreon-pack-cloud-aws-backup
- On the Centreon Web interface, install the Amazon Backup Vault Centreon Plugin Pack on the Configuration > Plugin Packs page.
Configurationβ
Hostβ
- Log into Centreon and add a new Host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your AWS Backup Vault server settings.
- Select the Cloud-Aws-Backup-Vault-custom template to apply to the Host.
- Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
Mandatory | Macro | Description |
---|---|---|
X | AWSSECRETKEY | AWS Secret key of your IAM role. Password checkbox must be checked. |
X | AWSACESSKEY | AWS Access key of your IAM role. Password checkbox must be checked. |
X | AWSREGION | Region where the instance is running. |
X | AWSCUSTOMMODE | Custom mode to get metrics, 'awscli' is the default, you can also use 'paws' perl library. |
X | VAULTBACKUPNAME | Backup Vault name containing jobs. |
PROXYURL | Configure proxy URL. | |
EXTRAOPTIONS | Any extra option you may want to add to every command_line (eg. a --verbose flag). | |
DUMMYSTATUS | Host state. Default is OK, do not modify it until you know what you are doing. | |
DUMMYOUTPUT | Host check output. Default is 'This is a dummy check'. Customize it with your own if needed. |
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 CLI using the
centreon-engine user account (su - centreon-engine
) and test the Plugin by
running the following command with the name of your backup vault:
/usr/lib/centreon/plugins//centreon_aws_backup_api.pl \
--plugin=cloud::aws::backup::plugin \
--mode=jobstatus \
--custommode='awscli' \
--aws-secret-key='' \
--aws-access-key='' \
--region='' \
--backup-vault-name='MY-VAULT' \
--filter-metric='.*' \
--proxyurl='' \
--timeframe='86400' \
--period='3600' \
--zeroed\
The expected command output is shown below:
OK: 'MY-VAULT' Statistic 'Sum' Metrics Number of backup jobs expired: 0.00 , Number of copy jobs completed: 0.00 , Number of backup jobs failed: 0.00 , Number of backup jobs completed: 4.00 , Number of recovery jobs expired: 0.00 , Number of copy jobs failed: 0.00 | 'MY-VAULT~sum#backup.jobs.expired.count'=0.00;;;0; 'MY-VAULT~sum#copy.jobs.completed.count'=0.00;;;0; 'MY-VAULT~sum#backup.jobs.failed.count'=0.00;;;0; 'MY-VAULT~sum#backup.jobs.completed.count'=4.00;;;0; 'MY-VAULT~sum#recovery.jobs.expired.count'=0.00;;;0; 'MY-VAULT~sum#copy.jobs.failed.count'=0.00;;;0;
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins//centreon_aws_backup_api.pl \
--plugin=cloud::aws::backup::plugin \
--mode=jobstatus \
--help
All available modes can be displayed by adding the
--list-mode
parameter to the command:
/usr/lib/centreon/plugins//centreon_aws_backup_api.pl \
--plugin=cloud::aws::backup::plugin \
--list-mode
Troubleshootingβ
Please find the troubleshooting documentation for Centreon Plugins typical issues.