blackho1e / yii2-gearman-monitor
yii2-gearman-monitor
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- maknz/slack: ^1.7.0
- necromant2005/gearman-stats: @dev
- yiisoft/yii2: ^2.0.6
This package is not auto-updated.
Last update: 2025-01-05 07:16:57 UTC
README
기어맨 모니터링
Composer로 설치
composer require blackho1e/yii2-gearman-monitor "dev-master"
또는 composer.json에 추가
"blackho1e/yii2-gearman-monitor": "dev-master"
설정
- console/config/main.php 파일에 추가:
'modules' => [ 'gearman-monitor' => [ 'class' => 'blackho1e\yii2\gearman\monitor\Module', 'params' => [ 'servers' => [ [ 'host' => '127.0.0.1', 'port' => 4730, 'limit' => 5, // 5개이상인경우 알림 'functions' => [ // 모니터링할 평션 리스트 'test1', 'test2', ], ], ], 'slack' => [ 'url' => 'https://hooks.slack.com/services/xxxxxxxxx/xxx...', 'options' => [ 'username' => 'blackho1e', 'channel' => '#general', 'icon' => ':sunflower:', 'link_names' => true ] ] ] ] ]
- 시스템에 crontab 등록
$ sudo crontab -e
:
*/30 * * * * php /home/user/app/yii gearman-monitor