PDA

View Full Version : {HOSTNAME} macro in action returns wrong value


probert100
11-07-2010, 18:08
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
14-07-2010, 02:56
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!!