Ad Widget

Collapse

Send e-mail script does not work...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lberaldi
    Junior Member
    • Jul 2012
    • 2

    #1

    Send e-mail script does not work...

    Hi, i'm having problem with sending emails by script nbSMTP or sendEmail, none of both works, i have tried many things but apeears that the action does not try to execute the script,
    when i run mannually the script it runs ok and send email but by zabbix action if i put on media configuration an invalid script name there is no error on audit/events and says "sent" but the script does not ran.
    my scripts is in /etc/zabbix/alert.d/ folder and in zabbix_server.conf i have the parameter AlertScriptsPath=/etc/zabbix/alert.d/

    tks.
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #2
    when you run the script manually, do yo run it as user zabbix?

    Comment

    • lberaldi
      Junior Member
      • Jul 2012
      • 2

      #3
      Send e-mail script does not work...

      i have tried, but i will try it again to ensure that, but the file (script) permissions is ok and i tried 777 too but does not run, neither try to run. Even if i put on media an script name that does not exist no errors was logged and said "sent" on audit/event.

      Comment

      • anjiytwok
        Member
        • Dec 2012
        • 44

        #4
        Hello 0siris,


        Could you please tell me, the script what i need write.

        I have created the media setting and trigger and events,
        But need only what is the content in the script, then i can configure it in the zabbix_server.conf

        please advise in the script.

        Comment

        Working...