Ad Widget

Collapse

notification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • degenaro
    Junior Member
    • Mar 2017
    • 9

    #1

    notification

    What's desired is to detect problems and send notifications (via e-mail). I've been struggling and hope you can help.

    I set up a Zabbix web monitor which works perfectly. As expected, the status is:

    Step "[degenaro] DUCC Broker status" [1 of 1] failed: Couldn't connect to server: couldn't connect to host

    and when when all is well the status is:

    OK.

    Perfect.

    =====

    Issue 1.

    I define a trigger based on the above web status. When the status changes the trigger status changes from OK to PROBLEM. That part is good. But when The problem is resolved, the trigger remains PROBLEM?

    =====

    Issue 2.

    The e-mail does not get sent. In the zabbix_server.log file I see:

    cannot connect to SMTP server "localhost": cannot connect to [[localhost]:25]: [111] Connection refused

    And under Monitoring -> Events I see an entry:

    Step 1, Type Email, Status Not Sent, retries left 0 ...

    Yet, if I issue:

    sendmail degenaro@mydomain < foobar.txt

    the message arrives.
  • degenaro
    Junior Member
    • Mar 2017
    • 9

    #2
    I have a workaround for issue #2.

    I configure Media type for Email such that SMTP server is 127.0.0.1 and now e-mail is sent by Zabbix. However replacing 127.0.0.1 by "localhost" does not work and the zabbix_server.log says "connect refused".

    I wrote a simple test python script that uses "localhost" and port 25 and can successfully send mail as the same user.

    I'm happy to turn on tracing or share other relevant information to better understand why Zabbix behaves so.

    Comment

    Working...