Hi!
I want to build triggers for snmptrap via LLD. Snmp function gives {#SNMPVALUE} macro. When I try to use it in trigger prototype, zabbix does not converts macro to value. How should I write regex with macro inside?
Trigger prototype:
({TRIGGER.VALUE}=0 and {VSA-1:LH.MG.Hosts.[{#SNMPINDEX}].regexp()} = 1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*DOWN.*{#SNMPVALUE}.*)}=1) or ({TRIGGER.VALUE}=1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*UP.*{#SNMPVALUE}.*)}=1)
Trigger:
({TRIGGER.VALUE}=0 and {VSA-1:LH.MG.Hosts.[1].regexp()} = 1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*DOWN.*{#SNMPVALUE}.*)}=1) or ({TRIGGER.VALUE}=1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*UP.*{#SNMPVALUE}.*)}=1)
I want to build triggers for snmptrap via LLD. Snmp function gives {#SNMPVALUE} macro. When I try to use it in trigger prototype, zabbix does not converts macro to value. How should I write regex with macro inside?
Trigger prototype:
({TRIGGER.VALUE}=0 and {VSA-1:LH.MG.Hosts.[{#SNMPINDEX}].regexp()} = 1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*DOWN.*{#SNMPVALUE}.*)}=1) or ({TRIGGER.VALUE}=1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*UP.*{#SNMPVALUE}.*)}=1)
Trigger:
({TRIGGER.VALUE}=0 and {VSA-1:LH.MG.Hosts.[1].regexp()} = 1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*DOWN.*{#SNMPVALUE}.*)}=1) or ({TRIGGER.VALUE}=1 and {VSA-1:snmptrap["lhnNsmNotificationManager"].regexp(^.*EID_.*STATUS.*UP.*{#SNMPVALUE}.*)}=1)
Comment