Dear Zabbix users,
when using more then one item for trigger evaluation it is nice to have the items in the action message. One can put the generic item macro referers in the text like so e.g.:
{ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
{ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
{ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
But that doesn't honor the actually used number of items. If I have a trigger with one item the other two items will be shown with like so:
*UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
*UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
Does anyone know a solution for this?
I am thinking of a more dynamic version, maybe displaying item info conditionally? Only put it there if multiple items are used? Even better: if one uses 5 items, then show 5. If 10 are used then show 10. Numbers probably get more senseless the higher they go.
Is there a better approach for this?
Cheers
timo
when using more then one item for trigger evaluation it is nice to have the items in the action message. One can put the generic item macro referers in the text like so e.g.:
{ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
{ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
{ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
But that doesn't honor the actually used number of items. If I have a trigger with one item the other two items will be shown with like so:
*UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
*UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
Does anyone know a solution for this?
I am thinking of a more dynamic version, maybe displaying item info conditionally? Only put it there if multiple items are used? Even better: if one uses 5 items, then show 5. If 10 are used then show 10. Numbers probably get more senseless the higher they go.
Is there a better approach for this?
Cheers
timo