zabbix 各大云平台监控采集
 

接入云平台

  • aws cloudwatch
  • aliyun 云监控
  • Vultr ### zabbix-SenderServe

目录结构

main.py # 主入口
cron.d # 各个实例定时任务入参
config # 各平台ak字典
cloud # 各接入平台脚本

定时采集任务

*/30 * * * * root cron.Ec2Events.sh "awsAccount1" "us-west-2" "awsAccount1_us-west-2" &>/dev/null
# ec2维护事件

*/5 * * * * root cron.ElastiCache.sh "pro-publicsvr-redis" "pro-publicsvr-redis-1" "${zabbix-server}" "awsAccount1" "us-west-1" &>/dev/null
# cache

*/5 * * * * root cron.RDS.sh "pro-sec-xxxx-rds" "pro-sec-xxxx-rds" "54.1.1.1" "awsAccount1" "us-west-1" &>/dev/null
# rds


*/5 * * * * root cron.ApplicationELB.sh "app/ld-get/xxxxxx" "ld-get" "54.1.1.1" "awsAccount1" "us-west-1" &>/dev/null
*/5 * * * * root cron.ELB.sh "lb-xxx-1" "lb-xxx-1" "54.1.1.1" "awsAccount1" "us-west-1" &>/dev/null
# lb


*/5 * * * * root cron.VultrBindwidth.sh "Vultr-Bindwidth"  &>/dev/null
# Vultr服务器带宽流量告警

参考: python celery定时任务:https://www.cnblogs.com/jclian91/p/10348261.html


文章作者: 以谁为师
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源!
              
  目录