I want to display a trigger message like: Raid status on SynoNAS:
Raid status on {HOSTNAME}: {ITEM.VALUE3} is {ITEM.VALUE2}
There is a working Item Prototype (discovery rule) "syno.raid.status" (numeric). I cloned this prototype, adapted the key ("syno.raid.nameof"), the OID (checked to be correct using snmpwalk/snmpget) and the type (string instead numeric).
Now using a trigger condition:
{Template_Synology_5:syno.raid.status.[{#SNMPINDEX}].last()}>1 and
{Template_Synology_5:syno.raid.status.[{#SNMPINDEX}].last()}<11 and
{Template_Synology_5:syno.raid.nameof.[{#SNMPINDEX}].strlen(#1)}>0
renders
Raid status on Syno01: *UNKNOWN* is Expanding (4)
When I check "last values", the items syno.raid.nameof[0..5] correctly report the names of the Volumes as also returned from snmpwalk, testing the expression return TRUE, however, the ITEM.VALUE3 seems to only render *UNKNOWN*.
Could please anybody help me with explaining why ITEM.VALUE2 returns a correct value, ITEM.VALUE3 not? What am I missing to get the desired message?
Raid status on {HOSTNAME}: {ITEM.VALUE3} is {ITEM.VALUE2}
There is a working Item Prototype (discovery rule) "syno.raid.status" (numeric). I cloned this prototype, adapted the key ("syno.raid.nameof"), the OID (checked to be correct using snmpwalk/snmpget) and the type (string instead numeric).
Now using a trigger condition:
{Template_Synology_5:syno.raid.status.[{#SNMPINDEX}].last()}>1 and
{Template_Synology_5:syno.raid.status.[{#SNMPINDEX}].last()}<11 and
{Template_Synology_5:syno.raid.nameof.[{#SNMPINDEX}].strlen(#1)}>0
renders
Raid status on Syno01: *UNKNOWN* is Expanding (4)
When I check "last values", the items syno.raid.nameof[0..5] correctly report the names of the Volumes as also returned from snmpwalk, testing the expression return TRUE, however, the ITEM.VALUE3 seems to only render *UNKNOWN*.
Could please anybody help me with explaining why ITEM.VALUE2 returns a correct value, ITEM.VALUE3 not? What am I missing to get the desired message?