Ad Widget

Collapse

Mail notification problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pierra
    Junior Member
    • Jul 2010
    • 3

    #1

    Mail notification problem

    Hi all,

    I successfully installed the 1.8.1 Zabbix version.

    I use a little script to send my mail notification cause my SMTP server needs auth.

    #!/bin/sh

    zabbixemailto=$1
    zabbixsubject=$2
    zabbixbody="this is an automatic notification from zabbix "$3
    export [email protected]
    export zabbixemailto
    export zabbixsubject
    export zabbixbody
    export smtpserver=SERVER ADDRESS
    export smtplogin= USER
    export smtppass= PASSWORD

    /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver -xu $smtplogin -xp $smtppass
    I configured a lot of action to test this script.
    Now I just let one :
    Event source : Triggers
    Default subject : {TRIGGER.NAME}: {STATUS}
    Default message : {TRIGGER.NAME}: {STATUS}
    Recovery message: yes
    Recovery subject : {TRIGGER.NAME}: {STATUS}
    Recovery message : {TRIGGER.NAME}: {STATUS}
    Status : Enabled
    Even if I receive good notification like :
    Tittle :
    Zabbix Server has just been restarted: PROBLEM

    Body :
    this is an automatic notification from zabbix
    Zabbix Server has just been restarted: PROBLEM
    The problem is I receive a lot of notification like :
    Tittle :
    {TRIGGER.NAME}: {STATUS}

    Body :
    this is an automatic notification from zabbix
    {TRIGGER.NAME}: {STATUS}
    I tried to restart Zabbix-server, but nothing.

    PS : Sorry for my english.
    Last edited by pierra; 16-07-2010, 10:21.
  • eddk
    Junior Member
    • Jul 2010
    • 1

    #2
    Don't apologise for your English. The meaning's clear enough

    Comment

    • rspell
      Junior Member
      • Jul 2010
      • 1

      #3
      I installed zabbix for the first time this week. I had configured zabbix to monitor around a dozen hosts; an even mixture of linux and windows servers. I had configured an action to send email to me, and thought everything was working fine. At some point during the day yesterday, I began receiving lots of emails similar to yours with the subject {TRIGGER.NAME}: {STATUS} and the body {TRIGGER.NAME}: {STATUS} . I was getting a new email about every 15 seconds. Other zabbix users weren't getting these message.

      At one point, I had removed my email address from my user account. If I looked in the alerts table within mysql, I could see hundreds of messages with a status indicating that delivery had failed because zabbix couldn't find an email address to send it to.

      I then deleted all of my users as well as the actions that were defined and recreated them. The messages stopped, and I no longer see the alerts in the alerts table.

      Comment

      Working...