Ad Widget

Collapse

Custom Subject when sending e-mails...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misterdan
    Junior Member
    • Dec 2004
    • 20

    #1

    Custom Subject when sending e-mails...

    Hi

    Does anyone know of any method I can use to customize the 'Subject' field when sending e-mail alerts via Zabbix? I have considered using a script but this would need to include some sort of mailer program and I would rather use the included Zabbix e-mail facility if possible.

    I want to change the subject to include a mobile phone number rather than the trigger description so I can send via SMS.

    Thanks,

    Dan
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    You could define a seperate action for each person that is going to get mailed. Lets say you are monitoring a server, and if it crashes, you want to send a message to two cells.

    You could make one action that is pointed at a specific user (assuming you have made each of the people you are sending messages to a user) with a subject of "555-5550" (or whatever) and a message body of "X server just crashed". Then for every other person you want to alert, make another action in the same manner, but point it at a different user and change the subject line.

    A bit cumbersome if you want to change anything in the future, or if you have a lot of triggers you want to send alerts in this way. If you change your mind about using a script, you can create one to act as media. It could read in the subject and body of the message you are sending, and then fire that off via email to a list of people. You could then have control over the subject line in your emails so they get sent SMS. That way you only have to define one action per trigger in Zabbix, and you will still reach your list of people.

    Comment

    Working...