omni-lchen / zabbix-cloudwatch

71 stars 61 forks source link

SNS discovery:unknown query #37

Closed dragan1979 closed 6 years ago

dragan1979 commented 6 years ago

imported SNS exampple template and attached it to zabbix-host

My topic is named "topic"

AWS-CloudWatch:zabbix-host name localhost:zabbix server

./cron.SNS.sh "topic" "AWS-CloudWatch" "localhost" "default" "eu-west-1"

no results

./awsLLD.py -a "default" -r "eu-west-1" -q "SNSTopics" -c "topic"

{u'ListTopicsResponse': {u'ResponseMetadata': {u'RequestId': u'9cce08fb-1215-5273-9761-5b3601c7ec11'}, u'ListTopicsResult': {u'Topics': [{u'TopicArn': u'arn:aws:sns:eu-west-1:233135199200:topic'}], u'NextToken': None}}} { "data": [] }

Not sure did i miss some steps (5 is confusing for me)

dragan1979 commented 6 years ago

solved by editing following line:

re.search('', topicName, re.I):

instead of '' was 'product'