Zabbix与CloudWatch集成-Zabbix服务器LLD上没有数据

时间:2018-07-21 15:55:00

标签: amazon-web-services zabbix

我遵循了本指南:https://github.com/omni-lchen/zabbix-cloudwatch

添加了具有127.0.0.1 IP的虚拟主机,它位于Zabbix服务器本身上

./awsLLD.py -a "default" -r "eu-west-1" -q "SNSTopics" -c 'topic'
{
"data": [
{
"{#AWS_REGION}": "eu-west-1",
"{#AWS_ACCOUNT}": "default",
"{#TOPIC_INAME}": "",
"{#TOPIC_NAME}": "topic"
}
]
}

AWS-CloudWatch- zabbix-host的显示名称

localhost:zabbix服务器

默认AWS帐户

./cron.SNS.sh "topic" "AWS-CloudWatch" "localhost" "default" "eu-west-1"
{'host': 'AWS-CloudWatch', 'value': 2.0, 'key': u'SNS.NumberOfMessagesPublished.Sum["default","eu-west-1","topic"]', 'clock': 1532180160}
{'host': 'AWS-CloudWatch', 'value': 2.0, 'key': u'SNS.NumberOfNotificationsDelivered.Sum["default","eu-west-1","topic"]', 'clock': 1532180160}
{'host': 'AWS-CloudWatch', 'value': 0.0, 'key': u'SNS.NumberOfNotificationsFailed.Average["default","eu-west-1","topic"]', 'clock': 1532180160}
Count: 3

最新监控数据为空

导入示例SNS模板并将其附加到主机

enter image description here

enter image description here

enter image description here

enter image description here

我在这里缺少什么,数据是从Cloudwatch检索到的,但是没有转移到Zabbix服务器的任何错误

我尝试使用Lambda模板,但该模板没有问题,Lambda模板没有发现规则,所以我认为这就是问题

1 个答案:

答案 0 :(得分:1)

设法使其起作用:

必须将awsLLD.sh复制到0 <class 'int'> 1 <class 'datetime.time'> 2 <class 'str'> 3 <class 'list'> zabbix-service重新启动后,SNS数据开始出现在Zabbix中