Ad Widget

Collapse

Editing Notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mischa9
    Junior Member
    • Mar 2010
    • 10

    #1

    Editing Notifications

    Hello,

    Could someone tell me where the php file for sending mails is located so i can edit it.

    EDIT:
    The only file i seem to find is in the source code:

    zabbix-1.8.3/src/libs/zbxemail/email.c
    zabbix-1.8.3/include/email.h

    Is the only possible way to edit mail notification through c?
    Last edited by mischa9; 19-08-2010, 12:14.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    You define email content (subject and body) when you create an action.
    This is done in Configuration/Action section of Web interface.

    Zabbix sends emails in plain text format.
    You'll find some examples there : http://www.zabbix.com/documentation/...config/actions

    If you need more fancy formatting (as HTML), you need to define a new "media" in Administration/Media types section of type script with your own script. You can then define an action that uses your script.

    You have then to code your script so that it formats data the way you want and sends it.
    Media types are described there : http://www.zabbix.com/documentation/.../config/medias

    No need to modify Zabbix C or PHP code for that.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • mischa9
      Junior Member
      • Mar 2010
      • 10

      #3
      Hello alixen,

      Thank you for your great reply, this helped me a lot.

      Comment

      Working...