Ad Widget

Collapse

Zabbix send emails without SMTP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mystycs
    Member
    • Aug 2013
    • 56

    #1

    Zabbix send emails without SMTP

    Is there a way to set zabbix to send emails without SMTP and just normally like a simple php script would?

    like if i was to run
    HTML Code:
    echo testing | mail -s Bla [email protected]
    that would send a email on my linux without any hassle.
  • mbianchy
    Junior Member
    • Aug 2013
    • 5

    #2
    Hi mystycs,

    that should be an easy piece of cake:

    Create such a script, put it in the alertscripts folder and configure a new media type. This example is also in the manual iirc. (custom alterscripts)


    BR

    Comment

    • mystycs
      Member
      • Aug 2013
      • 56

      #3
      The problem is is that I'm not sure how to create the script. Are there any simple email scripts out there that don't use any SMTP at anything like that, just one that I can put it in that will email me is all I need.

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        Perhaps here you can find answer (https://www.zabbix.com/documentation...s/media/script).

        Comment

        • mystycs
          Member
          • Aug 2013
          • 56

          #5
          Got it. but where do i put my script?

          Comment

          • mystycs
            Member
            • Aug 2013
            • 56

            #6
            My zabbix server .conf file has nothing in it to point me to where it is. I am running ubuntu

            Comment

            • mystycs
              Member
              • Aug 2013
              • 56

              #7
              Nevermind it was read only

              Comment

              Working...