oat-sa / extension-tao-system-status
TAO系统状态
v1.8.0
2023-11-06 10:39 UTC
Requires
- oat-sa/extension-tao-scheduler: >=3.0.0
- oat-sa/generis: >=15.22
- oat-sa/lib-generis-aws: >=0.1.13
- oat-sa/oatbox-extension-installer: ~1.1||dev-master
- oat-sa/tao-core: >=50.30.0
- dev-master
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0.1
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.19.2
- v0.19.1
- v0.17.0
- v0.16.0
- v0.13.1
- v0.13.0
- v0.12.1
- v0.11.4
- v0.11.3
- v0.11.2
- v0.11.1
- v0.10.1
- v0.9.0
- v0.8.0
- v0.5.5
- v0.5.2
- v0.5.0
- dev-develop
- dev-feature/sonarqube-integration
- dev-fix/update-autoRelease-action-with-bot-user
- dev-feature/AUT-2995
- dev-backport/OATSD-1348/NSA-177-tmp-cleanup-fix
- dev-remove-jenkinsfile
- dev-ci/add_github_actions
- dev-fix/NCC-152/AssignmentsReportKeepsTracksOfAssignment
- dev-feature/performance_monitoring
- dev-feature/TAO-9929-system-check-ui
- dev-feature/TAO-9929-system-check-ui-react
- dev-release-0.5.0
This package is auto-updated.
Last update: 2024-09-17 14:12:55 UTC
README
扩展程序旨在监控某些服务的状态和TAO的正确配置。
安装
所有实例(Web和Worker)都需要以下CRON作业
*/5 * * * * root cd /var/www/html/tao && /usr/bin/flock -n /var/lock/tao-InstanceCheck.lock -c "sudo -u www-data nohup /usr/bin/php index.php 'oat\taoSystemStatus\scripts\tools\RunInstanceCheck' 2>&1 >>/var/log/tao/InstanceCheck.log &"
注意:对于AWS环境,请确保Web服务器角色和Worker服务器角色都有执行权限
- elasticache:DescribeCacheClusters
- rds:DescribeDBInstances
- cloudwatch:GetMetricData
帮助台链接
配置\oat\taoSystemStatus\model\SystemStatus\SystemStatusService::OPTION_SUPPORT_PORTAL_LINK
服务中的SystemStatusService
,使用适当的URL在TAO的系统状态页面上显示帮助台门户的链接
发送警报
要向任何其他服务发送警报,应配置AlarmNotificationService。例如,向OpsGenie发送警报config/tao/AlarmNotificationService.conf.php
<?php /** * Default config header created during install */ return new oat\tao\model\notifications\AlarmNotificationService([ 'notifiers' => [ [ 'class' => '\\oat\\tao\\model\\notifiers\\OpsGenieNotifier', 'params' => ['api-key'] ] ], 'dispatchTypes' => [ \oat\oatbox\reporting\Report::TYPE_ERROR //type of reports for sending ] ]);