Hello guys!
So I'm working on a custom template to monitor some processes on a RHEL 7 virtual machine agent and I want to create a Trigger that alerts me about the existence of these processes.
This is what I've done so far:
I've created several items on my custom template to inform me if there is a process with a specific name:
And I've done this to all the others processes that I want to monitor.
After that I created a trigger to alert me if the value returned by proc.num[buls] key is equal to 0 (which means that there is no process running with that name)
So my trigger expression is something like:
The trigger is working just fine and it alerts me on the Problems dashboard but I want to know specifically which one of those items is triggering the alert.
I've read about MACROS and some of them should work on the Trigger Name, so I've tried to add something like:
{ITEM.NAME} {ITEM.VALUE} {TRIGGER.NAME} {ITEM.ID} {ITEM.STATE} on the trigger name and the only one that worked was the {ITEM.VALUE}, that showed on the problem dashboard the value that I was being alerted of. But that doesn't help me at all.
Is there a way that I can configure the Trigger so that it shows me which one of the many items is having the issue? Because creating one trigger for each item is not very practical.
Thanks in advance.
So I'm working on a custom template to monitor some processes on a RHEL 7 virtual machine agent and I want to create a Trigger that alerts me about the existence of these processes.
This is what I've done so far:
I've created several items on my custom template to inform me if there is a process with a specific name:
Code:
Item name: buls (this is one of the processes name that I want to monitor, for example) Type: Zabbix agent Key: proc.num[buls] Type of info: Numeric (unsigned)
After that I created a trigger to alert me if the value returned by proc.num[buls] key is equal to 0 (which means that there is no process running with that name)
So my trigger expression is something like:
Code:
{Custom Template:proc.num[bufi].last()}=0 or
{Custom Template:proc.num[mcs].last()}=0 or
.......
.......
....... and so on until the last process....
I've read about MACROS and some of them should work on the Trigger Name, so I've tried to add something like:
{ITEM.NAME} {ITEM.VALUE} {TRIGGER.NAME} {ITEM.ID} {ITEM.STATE} on the trigger name and the only one that worked was the {ITEM.VALUE}, that showed on the problem dashboard the value that I was being alerted of. But that doesn't help me at all.
Is there a way that I can configure the Trigger so that it shows me which one of the many items is having the issue? Because creating one trigger for each item is not very practical.
Thanks in advance.