Ad Widget

Collapse

Problem with email notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pamik
    Junior Member
    • Nov 2020
    • 3

    #1

    Problem with email notifications

    Good day. Raised the server with zabbix 5.0.5, configured it. When a notification is sent to the mail when a trigger is triggered, the notification comes, but all information about the problem is in a file, like: ATT00001. The information about triggers in the file is correct, but I would like it to be in the body of the message. Thanks
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    This sounds like a problem with how your email media is defined. Can you post a screen shot of your Zabbix media configuration for email? Be sure to obscure any password that might be used, if you're doing authenticated email relaying.

    Comment


    • pamik
      pamik commented
      Editing a comment
      Mail is sent through postfix using the script:
      ***
      #! / bin / bash
      to = $ 1
      subject = $ 2
      body = $ 3

      cat << EOF | mail -s "$ subject" "$ to"
      $ body
      EOF
      ***
  • pamik
    Junior Member
    • Nov 2020
    • 3

    #3
    Originally posted by tim.mooney
    This sounds like a problem with how your email media is defined. Can you post a screen shot of your Zabbix media configuration for email? Be sure to obscure any password that might be used, if you're doing authenticated email relaying.

    Mail is sent through postfix using the script:
    ***
    #! / bin / bash
    to = $ 1
    subject = $ 2
    body = $ 3

    cat << EOF | mail -s "$ subject" "$ to"
    $ body
    EOF
    ***

    Comment

    • pamik
      Junior Member
      • Nov 2020
      • 3

      #4
      Originally posted by cyber
      Why don't you just configure email media type directly?
      Thank you very much. It all worked. Initially I configured it through a script, because I was raising a new server following the example of the old one. Once again, thanks a lot.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #5
        Why don't you just configure email media type directly?

        Comment

        Working...