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