fauguste/cloudwatch-script-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fauguste/cloudwatch-script-php

Composer 安装命令:

composer create-project fauguste/cloudwatch-script-php

包简介

PHP script for cloud watch metrics ans alarms generation

README 文档

README

Build Status Scrutinizer Code Quality SensioLabsInsight Code Climate Test Coverage

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

This libraries are required for this project :

# Using PHP5
php5-cli, php5-curl

# Using PHP7
php-cli, php-curl

Configuration

Authorize this policy :

{
    "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.

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

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

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.

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固