Amazon CloudFront
Prerequisitesβ
Centreon Pluginβ
Install this plugin on each needed poller:
yum install centreon-plugin-Cloud-Aws-Cloudfront-Api
To use it, you can either install 'awscli' (AWS Command Line Interface) or 'paws' (Perl AWS SDK).
Install awscliβ
On CentOS, install with following commands:
yum install awscli
Centreon Configurationβ
Create a host using the appropriate templateβ
Go to Configuration > Hosts and click Add. Then, fill the form as shown by the following table:
Field | Value |
---|---|
Name | Name of the host |
Alias | Description |
IP Address / DNS | Can be localhost |
Monitored from | Poller used to monitor |
Templates | Cloud-Aws-CloudFront-custom |
The following host macros should be set as shown:
Macro | Value |
---|---|
AWSACCESSKEY | AWS access key |
AWSSECRETKEY | AWS secret key |
AWSCUSTOMMODE | Plugin custom mode: awscli or paws |
AWSINSTANCEID | Instance ID |
Check the Create Services linked to the Template too box and click on the Save button.
The following services will be created:
- Cloudfront-Errors
- Cloudfront-Requests
- Cloudfront-Throughput