2017 © Pedro PelĂĄez
 

project cloudwatch-script-php

PHP script for cloud watch metrics ans alarms generation

image

fauguste/cloudwatch-script-php

PHP script for cloud watch metrics ans alarms generation

  • Wednesday, March 22, 2017
  • by fauguste
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality SensioLabsInsight Code Climate Test Coverage, (*1)

Amazon CloudWatch Monitoring Scripts for EC2 Instance

This project provide some scripts in order to monitor your EC2 instances with CloudWatch.
You can add your own scripts in the plugin directory., (*2)

Requirements

This libraries are required for this project :, (*3)

# Using PHP5
php5-cli, php5-curl

# Using PHP7
php-cli, php-curl

Configuration

Authorize this policy :, (*4)

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1446055544000",
            "Effect": "Allow",
            "Action": [
                "cloudwatch:PutMetricAlarm",
                "cloudwatch:PutMetricData",
                "cloudwatch:DeleteAlarms"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

Using IAM roles

   'profil':'YOUR_PROFIL',

Using credentials

Add your key and secret in the config file., (*5)

   'key':'YOUR_KEY',
   'secret':'YOUR_SECRET',

Usage

Send metrics to CloudWatch (Run every 5 minutes)`, (*6)

php metrics.php [-f config-file]

Create alarms in CloudWatch (Run one time), (*7)

php alarmes.php [-f config-file]

Delete alarms in CloudWatch (Run one time), (*8)

php delete-alarmes.php [-f config-file]

Plugins

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

License

This application licensed by Apache License Version 2.0., (*9)

The Versions

22/03 2017

dev-master

9999999-dev

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

22/03 2017

v0.0.10

0.0.10.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

03/03 2017

v0.0.9

0.0.9.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

28/01 2017

v0.0.8

0.0.8.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

18/02 2016

v0.0.7

0.0.7.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

08/12 2015

v0.0.6

0.0.6.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch

18/11 2015

v0.0.5

0.0.5.0

PHP script for cloud watch metrics ans alarms generation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

monitoring cloudwatch