Hi,
Maybe I'm using the names and contexts wrong, but I'll try to explain what I mean!
How can I use values of other monitored items in a trigger?
Example: We have a custom application that has a custom MIB. I've created a new template, discovery rule, prototypes... everything works as it is supposed to!
the thing is: the MIB lists some drivers that the system uses by a number. Then there are the OID's that decribe that number. And there are OID's that check if the driver has an error (by the number). Now I would like to combine those two in a trigger message.
So, the item that has the id:
QUINSY-QMOBGATE::dvDriverStatus.{#SNMPINDEX}
which results in (for example):
QUINSY-QMOBGATE::dvDriverID."01234567"
then the item that has the name:
QUINSY-QMOBGATE::dvDriverName.{#SNMPINDEX}
that results in (for example):
QUINSY-QMOBGATE::dvDriverName."01234567" = STRING: "Driver Name"
the item that checks the error:
QUINSY-QMOBGATE::dvDriverStatusDelayed."01234567" = INTEGER: generalerror(1)
I have created a key mgwDriverName[{#SNMPVALUE}]
and the trigger:
{Template:mgwDriverStatusDelayed[{#SNMPINDEX}].last(#3)}#0
And what I would like the name to be:
Driver in Error {HOST.HOST}:mgwDriverName[{#SNMPINDEX}]
what I wanted to happen is that, if the driver has an error, it would show:
Driver in Error Host: Driver Name
but what it shows is:
Driver in Error Host:mgwDriverName["01234567"]
What am I getting/doing wrong?
Regards,
Jeroen
Maybe I'm using the names and contexts wrong, but I'll try to explain what I mean!

How can I use values of other monitored items in a trigger?
Example: We have a custom application that has a custom MIB. I've created a new template, discovery rule, prototypes... everything works as it is supposed to!
the thing is: the MIB lists some drivers that the system uses by a number. Then there are the OID's that decribe that number. And there are OID's that check if the driver has an error (by the number). Now I would like to combine those two in a trigger message.So, the item that has the id:
QUINSY-QMOBGATE::dvDriverStatus.{#SNMPINDEX}
which results in (for example):
QUINSY-QMOBGATE::dvDriverID."01234567"
then the item that has the name:
QUINSY-QMOBGATE::dvDriverName.{#SNMPINDEX}
that results in (for example):
QUINSY-QMOBGATE::dvDriverName."01234567" = STRING: "Driver Name"
the item that checks the error:
QUINSY-QMOBGATE::dvDriverStatusDelayed."01234567" = INTEGER: generalerror(1)
I have created a key mgwDriverName[{#SNMPVALUE}]
and the trigger:
{Template:mgwDriverStatusDelayed[{#SNMPINDEX}].last(#3)}#0
And what I would like the name to be:
Driver in Error {HOST.HOST}:mgwDriverName[{#SNMPINDEX}]
what I wanted to happen is that, if the driver has an error, it would show:
Driver in Error Host: Driver Name
but what it shows is:
Driver in Error Host:mgwDriverName["01234567"]
What am I getting/doing wrong?
Regards,
Jeroen
Comment