Ad Widget

Collapse

aws sns emails to zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dragan979
    Member
    • Apr 2018
    • 49

    #1

    aws sns emails to zabbix

    i configured asw config with sns emails,now i need some way to redirected all those emails to zabbix.
    is it possible somehow to redirect all emails from office365 mailbox to zabbix,to create alerts from it ?.
    i searched google and it seems that it's possible with SMS only ?
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by dragan979
    i configured asw config with sns emails,now i need some way to redirected all those emails to zabbix.
    is it possible somehow to redirect all emails from office365 mailbox to zabbix,to create alerts from it ?.
    i searched google and it seems that it's possible with SMS only ?
    Hi

    If you need to receive mail from Amazon to Zabbix, you need to configure console mail client on the Zabbix Server or write a script that will parse the letters in the mailbox and write the data to the Zabbix (zabbix_sender).

    Comment

    • dragan979
      Member
      • Apr 2018
      • 49

      #3
      Originally posted by kernbug

      Hi

      If you need to receive mail from Amazon to Zabbix, you need to configure console mail client on the Zabbix Server or write a script that will parse the letters in the mailbox and write the data to the Zabbix (zabbix_sender).
      Thanks kernbug, can you please give me some steps or some links ?

      Thanks !

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by dragan979

        Thanks kernbug, can you please give me some steps or some links ?

        Thanks !
        What programming language you are familiar with? General steps: fetch mail (console client or script (Go,Python/Perl/Bash)), do some logic to check, send result to the Zabbix with zabbix_sender!
        Last edited by kernbug; 28-06-2018, 12:58.

        Comment

        • dragan979
          Member
          • Apr 2018
          • 49

          #5
          this post must be deleted
          Last edited by dragan979; 22-11-2019, 12:37.

          Comment

          • jan.garaj
            Senior Member
            Zabbix Certified Specialist
            • Jan 2010
            • 506

            #6
            Why you don't subscribe AWS SQS queue to your AWS SNS topic and then process queue. Or create&subscribe Lambda function to your AWS SNS topic and function will parse data and it will push them into your Zabbix.
            This one seems to be better AWS solution, than using SMTP/emails.
            Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
            My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

            Comment

            • dragan979
              Member
              • Apr 2018
              • 49

              #7
              uh,thanks again,didn't know it's possible, can you give me some starting point for lambda function ?,no idea how to start

              Comment

              • jan.garaj
                Senior Member
                Zabbix Certified Specialist
                • Jan 2010
                • 506

                #8
                In this tutorial, you use a Lambda function in one AWS account to subscribe to an Amazon Simple Notification Service (Amazon SNS) topic in a separate AWS account. When you publish messages to your Amazon SNS topic, your Lambda function reads the contents of the message and outputs it to Amazon CloudWatch Logs. To complete this tutorial, you use the AWS Command Line Interface (AWS CLI).
                Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
                My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

                Comment

                Working...