I have a template I created that I link to the base Linux/windows templates. I've added some items and dependent items, etc.
I'd like to be able to use item values in a trigger description. The documentation says that macros are valid in trigger descriptions.
I'm trying this: (I cloned the default trigger for high PCU, and modified the description.
Windows: High CPU utilization (over 90% for 5m) {?last(//top.cpu.pname)} : {?last(//top.cpu.pct)}%
I end up with *UNKNOWN* after the macros expand:
Windows: High CPU utilization (over 90% for 5m) *UNKNOWN* : *UNKNOWN*%
Here are all of the relevent items from the host perspective, so they are all available and populated:

I've tried several variations, but I'm starting to wonder if the fact that these templates are linked is the issue? In order for this to work, do I need all of the item values to be in the SAME template?
Thanks,
-Tom
I'd like to be able to use item values in a trigger description. The documentation says that macros are valid in trigger descriptions.
I'm trying this: (I cloned the default trigger for high PCU, and modified the description.
Windows: High CPU utilization (over 90% for 5m) {?last(//top.cpu.pname)} : {?last(//top.cpu.pct)}%
I end up with *UNKNOWN* after the macros expand:
Windows: High CPU utilization (over 90% for 5m) *UNKNOWN* : *UNKNOWN*%
Here are all of the relevent items from the host perspective, so they are all available and populated:
I've tried several variations, but I'm starting to wonder if the fact that these templates are linked is the issue? In order for this to work, do I need all of the item values to be in the SAME template?
Thanks,
-Tom
Comment