PHPackages                             fauguste/cloudwatch-script-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. fauguste/cloudwatch-script-php

ActiveProject[Logging &amp; Monitoring](/categories/logging)

fauguste/cloudwatch-script-php
==============================

PHP script for cloud watch metrics ans alarms generation

v0.0.15(5y ago)2185Apache-2.0PHPCI failing

Since Nov 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fauguste/cloudwatch-script-php)[ Packagist](https://packagist.org/packages/fauguste/cloudwatch-script-php)[ RSS](/packages/fauguste-cloudwatch-script-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f36c54adba84808a46e3f691605b79c42ebb0db73c5671a983d5b5550be27ff7/68747470733a2f2f7472617669732d63692e6f72672f66617567757374652f636c6f756477617463682d7363726970742d7068702e737667)](https://travis-ci.org/fauguste/cloudwatch-script-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d5884a00399e4465dfe44853fc4dac30a73d023dd0d08fa22c81cd40ff370719/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66617567757374652f636c6f756477617463682d7363726970742d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fauguste/cloudwatch-script-php/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/1deaa786993c9f9fcf2354beb317aa52dbbdddd3b5b5ea3ead866274787436c0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34383238303765392d663933622d343866302d386464352d3531643363633162363733662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/482807e9-f93b-48f0-8dd5-51d3cc1b673f)[![Code Climate](https://camo.githubusercontent.com/45e747b968cd9fec71742339861c03174c41aaab579df218884c3ba52727c065/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f66617567757374652f636c6f756477617463682d7363726970742d7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/fauguste/cloudwatch-script-php)[![Test Coverage](https://camo.githubusercontent.com/99595e0972bb0e2bee3f7a91fbc3596f6e39095405fbb6fbcc2565a8d6067fb3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f66617567757374652f636c6f756477617463682d7363726970742d7068702f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/fauguste/cloudwatch-script-php)

Amazon CloudWatch Monitoring Scripts for EC2 Instance
=====================================================

[](#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.

Requirements
------------

[](#requirements)

This libraries are required for this project :

```
# Using PHP5
php5-cli, php5-curl

# Using PHP7
php-cli, php-curl

```

Configuration
-------------

[](#configuration)

Authorize this policy :

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

```

### Using IAM roles

[](#using-iam-roles)

```
   'profil':'YOUR_PROFIL',

```

### Using credentials

[](#using-credentials)

Add your key and secret in the config file.

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

```

Usage
-----

[](#usage)

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]

```

Plugins
-------

[](#plugins)

NameDescriptionSolrMonitoring ping solr URLApacheMonitoring apache process numberDiskMonitoring disk usageInodesMonitoring disk inodes usageSftpMonitoring SFTP accessMemoryMonitoring memory percentage of usedHttpMonitoring HTTP URL with patternElasticsMonitoring ElasticsearchSolrCdcrMonitoring CDCRLicense
-------

[](#license)

This application licensed by Apache License Version 2.0.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 88.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~193 days

Recently: every ~203 days

Total

11

Last Release

1938d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2298302?v=4)[fauguste](/maintainers/fauguste)[@fauguste](https://github.com/fauguste)

---

Top Contributors

[![fauguste](https://avatars.githubusercontent.com/u/2298302?v=4)](https://github.com/fauguste "fauguste (46 commits)")[![PatriceT](https://avatars.githubusercontent.com/u/1051319?v=4)](https://github.com/PatriceT "PatriceT (3 commits)")[![maelandipadapa](https://avatars.githubusercontent.com/u/45207675?v=4)](https://github.com/maelandipadapa "maelandipadapa (1 commits)")[![RivetAlan](https://avatars.githubusercontent.com/u/20542990?v=4)](https://github.com/RivetAlan "RivetAlan (1 commits)")[![sreille-silamir](https://avatars.githubusercontent.com/u/43132250?v=4)](https://github.com/sreille-silamir "sreille-silamir (1 commits)")

---

Tags

alarmecloudwatchec2-instancemonitorphpmonitoringcloudwatch

### Embed Badge

![Health badge](/badges/fauguste-cloudwatch-script-php/health.svg)

```
[![Health](https://phpackages.com/badges/fauguste-cloudwatch-script-php/health.svg)](https://phpackages.com/packages/fauguste-cloudwatch-script-php)
```

###  Alternatives

[maxbanton/cwh

AWS CloudWatch Handler for Monolog library

42516.0M35](/packages/maxbanton-cwh)[phpnexus/cwh

AWS CloudWatch Handler for Monolog library

403.7M7](/packages/phpnexus-cwh)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
