This project provide some scripts in order to monitor your EC2 instances with CloudWatch.
You can add your own scripts in the plugin directory.
This libraries are required for this project :
# Using PHP5
php5-cli, php5-curl
# Using PHP7
php-cli, php-curl
Authorize this policy :
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1446055544000",
"Effect": "Allow",
"Action": [
"cloudwatch:PutMetricAlarm",
"cloudwatch:PutMetricData",
"cloudwatch:DeleteAlarms"
],
"Resource": [
"*"
]
}
]
}
'profil':'YOUR_PROFIL',
Add your key and secret in the config file.
'key':'YOUR_KEY',
'secret':'YOUR_SECRET',
Send metrics to CloudWatch (Run every 5 minutes)`
php metrics.php [-f config-file]
Create alarms in CloudWatch (Run one time)
php alarmes.php [-f config-file]
Delete alarms in CloudWatch (Run one time)
php delete-alarmes.php [-f config-file]
Name | Description |
---|---|
Solr | Monitoring ping solr URL |
Apache | Monitoring apache process number |
Disk | Monitoring disk usage |
Inodes | Monitoring disk inodes usage |
Sftp | Monitoring SFTP access |
Memory | Monitoring memory percentage of used |
Http | Monitoring HTTP URL with pattern |
Elastics | Monitoring Elasticsearch |
SolrCdcr | Monitoring CDCR |
This application licensed by Apache License Version 2.0.