Ad Widget

Collapse

Add individual content to alert Email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hawky
    Junior Member
    • Apr 2009
    • 15

    #1

    Add individual content to alert Email

    Hi together,

    I try to monitor a special application on a windows server,
    the application generates a log, which looks like that:

    11/10/2012 12:33:00
    <DEBUG INFORMATION>
    <DEBUG INFORMATION>
    <DEBUG INFORMATION>
    <DEBUG INFORMATION>
    .....

    So Zabbix receive this informations, after that the script takes the timestamp and do something with it and returns a 0 or 1. Is there
    a problem I would like to add the <DEBUG INFORMATION> part to
    the email. Is this possible and whats the best way to realize this?

    I would like to use this function with the active check feature of zabbix.

    Any ideas?

    Thank you,
    Hawky
  • lbl@unoc.dk
    Junior Member
    • Oct 2012
    • 6

    #2
    Macro

    You should be abel to fit a macro into the action of the trigger.

    http://www.zabbix.com/documentation/...ed_by_location

    In the standart email alert action you will find a line like this:

    ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}

    Im quite sure that will write the hostname:itemkey and then the value in the notification.

    If you look at the macro documentation page they also mention {{HOST.HOST}:{ITEM.KEY}.last(0)} might be used ... so it will print the last value recived and that should be the one evaluated by the trigger.

    I havent tested any of this so you will have to fiddle with it a bit.

    /lbl

    Comment

    Working...