Ad Widget

Collapse

{HOSTNAME} macro in action returns wrong value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • probert100
    Junior Member
    • Jun 2010
    • 7

    #1

    {HOSTNAME} macro in action returns wrong value

    Hi,

    I just upgraded to version 1.8.2 from 1.6. I have noticed that the {HOSTNAME} macro returns wrong value when action is trigged / email notification is send. When you use HOSTNAME value of the TRIGGER.NAME is returned

    For example this action:

    Notification Severity: {TRIGGER.SEVERITY}
    Device: {HOSTNAME}
    Device Status: {STATUS}
    Event Time: {EVENT.DATE} - {EVENT.TIME}

    Trigger ID: {TRIGGER.ID}
    Trigger Key: {TRIGGER.KEY}

    INFO:
    {TRIGGER.NAME}: {STATUS}



    Will generate email that looks like:

    Notification Severity: High
    Device: Port 5 Input Errors
    Device Status: OK
    Event Time: 2010.07.11 - 08:01:43

    Trigger ID: 44368
    Trigger Key: 86801

    INFO:
    Port 5 Input Errors Serial0/0/0:0 Input Error: OK


    Thanks for any help!
  • probert100
    Junior Member
    • Jun 2010
    • 7

    #2
    I wonder if anyone could give me some direction debugging this.

    Is this the src file that contains the Macro substitution?:
    libs/zbxserver/expression.c

    Thanks!!

    Comment

    Working...