阿里云十年CDT监控 多账号PHP版不用放机器里面了
自行下载阿里云的sdkPHPMailer邮件通知也有 我打包放下面请自行部署,我就不提供搭建支持了 你们自己摸索把
https://monitor.115155.xyz/img/aliyun.png
给一个阿里云的composer.json内容
composer.json
[*]{
[*] "name": "alibabacloud/client",
[*] "homepage": "https://www.alibabacloud.com/",
[*] "description": "Alibaba Cloud Client for PHP - Use Alibaba Cloud in your PHP project",
[*] "keywords": [
[*] "sdk",
[*] "tool",
[*] "cloud",
[*] "client",
[*] "aliyun",
[*] "library",
[*] "alibaba",
[*] "alibabacloud"
[*] ],
[*] "type": "library",
[*] "license": "Apache-2.0",
[*] "support": {
[*] "source": "https://github.com/aliyun/openapi-sdk-php-client",
[*] "issues": "https://github.com/aliyun/openapi-sdk-php-client/issues"
[*] },
[*] "authors": [
[*] {
[*] "name": "Alibaba Cloud SDK",
[*] "email": "sdk-team@alibabacloud.com",
[*] "homepage": "http://www.alibabacloud.com"
[*] }
[*] ],
[*] "require": {
[*] "php": ">=5.5",
[*] "ext-curl": "*",
[*] "ext-json": "*",
[*] "ext-libxml": "*",
[*] "ext-openssl": "*",
[*] "ext-mbstring": "*",
[*] "ext-simplexml": "*",
[*] "ext-xmlwriter": "*",
[*] "guzzlehttp/guzzle": "^6.3",
[*] "danielstjules/stringy": "^3.1",
[*] "mtdowling/jmespath.php": "^2.4",
[*] "adbario/php-dot-notation": "^2.2",
[*] "clagiordano/weblibs-configmanager": "^1.0"
[*] },
[*] "require-dev": {
[*] "ext-spl": "*",
[*] "ext-dom": "*",
[*] "ext-pcre": "*",
[*] "psr/cache": "^1.0",
[*] "ext-sockets": "*",
[*] "drupal/coder": "^8.3",
[*] "symfony/dotenv": "^3.4",
[*] "league/climate": "^3.2.4",
[*] "phpunit/phpunit": "^4.8.35|^5.4.3",
[*] "monolog/monolog": "^1.24",
[*] "composer/composer": "^1.8",
[*] "mikey179/vfsstream": "^1.6",
[*] "symfony/var-dumper": "^3.4"
[*] },
[*] "suggest": {
[*] "ext-sockets": "To use client-side monitoring"
[*] },
[*] "autoload": {
[*] "psr-4": {
[*] "AlibabaCloud\\Client\": "src"
[*] },
[*] "files": [
[*] "src/Functions.php"
[*] ]
[*] },
[*] "autoload-dev": {
[*] "psr-4": {
[*] "AlibabaCloud\\Client\\Tests\": "tests/"
[*] }
[*] },
[*] "config": {
[*] "preferred-install": "dist",
[*] "optimize-autoloader": true
[*] },
[*] "minimum-stability": "dev",
[*] "prefer-stable": true,
[*] "scripts-descriptions": {
[*] "cs": "Tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard.",
[*] "cbf": "Automatically correct coding standard violations.",
[*] "fixer": "Fixes code to follow standards.",
[*] "test": "Run all tests.",
[*] "unit": "Run Unit tests.",
[*] "feature": "Run Feature tests.",
[*] "clearCache": "Clear cache like coverage.",
[*] "coverage": "Show Coverage html.",
[*] "endpoints": "Update endpoints from OSS."
[*] },
[*] "scripts": {
[*] "cs": "phpcs --standard=PSR2 -n ./",
[*] "cbf": "phpcbf --standard=PSR2 -n ./",
[*] "fixer": "php-cs-fixer fix ./",
[*] "test": [
[*] "phpunit --colors=always"
[*] ],
[*] "unit": [
[*] "@clearCache",
[*] "phpunit --testsuite=Unit --colors=always"
[*] ],
[*] "feature": [
[*] "@clearCache",
[*] "phpunit --testsuite=Feature --colors=always"
[*] ],
[*] "coverage": "open cache/coverage/index.html",
[*] "clearCache": "rm -rf cache/*",
[*] "endpoints": [
[*] "AlibabaCloud\\Client\\Regions\\LocationService::updateEndpoints",
[*] "@fixer"
[*] ],
[*] "release": [
[*] "AlibabaCloud\\Client\\Release::release"
[*] ]
[*] }
[*]}
[*]复制代码
mjj v587 紫薯布丁 记录一下牛叉 本帖最后由 hundouluo 于 2024-9-18 22:59 编辑
用上上古探针 cppla/ServerStatus,一句监控的事儿。。
[*]
[*]{
[*] "name": "阿里云免费服务器流量18GB告警,限制username为乌兰察布",
[*] "rule": "(network_out-last_network_out)/1024/1024/1024>18&(username='wlcb1'|username='wlcb2')",
[*] "interval": 3600,
[*] "callback": "https://yourSMSurl"
[*]}
[*]复制代码 看完这个设置,又有点没看懂了,阿里云这个国内20G,国外200G到底是怎样的?之前有论坛的大佬说是:在国内使用20g,在国外使用200G "
可以理解为你开国内机器,20g。你开境外机器,180g
zzr 发表于 2024-9-18 23:24
可以理解为你开国内机器,20g。你开境外机器,180g
感谢佬解答
页:
[1]