Ad Widget

Collapse

How to use an smtp server that requires authentication?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdeavila
    Junior Member
    • Mar 2005
    • 12

    #1

    How to use an smtp server that requires authentication?

    The smtp server I want to use for sending alerts requires authentication. How do I configure the email media to use a specific username and password?

    The smtp configuration for 1.1alpha7 does not appear to have a password setting ...

    Thoughts?

    thanks,

    Miguel
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #2
    You can define media scripts for this.

    Comment

    • Luiz Antonio Oliveira
      Member
      • Feb 2007
      • 49

      #3
      how? what the parameter?

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        Media scripts are called by Zabbix with three arguments:

        1/ Value of "Send to" field of addressee
        2/ Notification Subject
        3/ Notification Message

        eg, a custom SMS notification script would get:
        your_media_script 012345789 "Host: test001 - HTTP server: PROBLEM" "Host: test001 - HTTP server: PROBLEM - Date: 2008-12-01 12:10:01 ..."

        for an email media script, the "Send to" field of each user would probably contain the email address. zabbix_server would then exec something like:
        your_media_script [email protected] "Host: test001 - HTTP server: PROBLEM" "Host: test001 - HTTP server: PROBLEM - Date: 2008-12-01 12:10:01 ..."


        It's up to your script to take proper action with those arguments.

        You can use whatever language you want (as long as the OS running zabbix_server supports it). Could be shell, PHP, Perl, compiled C, ...

        Comment

        Working...