Ad Widget

Collapse

zabbix 2.2 sending only the recovery message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raphboll
    Junior Member
    • May 2015
    • 2

    #1

    zabbix 2.2 sending only the recovery message

    Hi,

    I've setup an action to send email when 'not in maintenance' and Trigger.value = Problem. I've ticked the recovery email box.

    Zabbix does not send an email when it detects a problem. When the problem is corrected zabbix sends an 'OK' recovery email.

    Is there something to configure to enable sending the 'Problem' email? Am I missing something?

    Thanks

    Cheers
  • aargear
    Junior Member
    • Jun 2015
    • 1

    #2
    re: zabbix 2.2 sending only the recovery message

    I have the same issue on 2.4. The Action Logs indicate that the Problem message is being sent out, but I do not receive it, however I receive the OK messages without problem. Have you found any resolution?

    Additionally, have you tried checking the Action Logs under Administration>Audit>Action Logs to see if the messages are being sent out successfully?

    Comment

    • raphboll
      Junior Member
      • May 2015
      • 2

      #3
      Hi,

      Yes, I've found a solution to my problem:
      I was using the sendEmail command:
      /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp $smtppass

      which is missing quotes and thus options are not parsed correctly when the 'problem' email is sent. The 'ok' email is ... well ... ok ;-)

      Here is the corrected command that works:

      /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u "$zabbixsubject" -m "$zabbixbody" -s $smtpserver:25 -xu $smtplogin -xp $smtppass


      HTH

      --
      Raphaƫl.

      Comment

      Working...