Hello
I want to monitor my cisco device and its interfaces but I would like to be notified about link down only on certain interfaces filtered by alias. For example description of interfaces are: sw-sge2000, r-2850, srv-nas, pc-01, pc-02 but I'm interested about interfaces with names started with sw-, r-, srv- I don't want triggers about pc-01, pc-02.
For this purpose I used original "Template Module Interfaces SNMP" attached with Zabbix 5.04 and modified probled expression of trigger prototype "Interface {#IFNAME}({#IFALIAS}): Link down from original:
to:
I creaded macro ${INTF_REGEX} with value: sw-* to be notified about interfaces with description starting with sw-.
Unfortunately it doesn't works I get error:
I think there is problem with expression
but I can't figure whats going on.
The SNMP OID rule is following:
Can anyone give me a tip how to resolve my problem?
Modified trigger prototype:

Error message:
I want to monitor my cisco device and its interfaces but I would like to be notified about link down only on certain interfaces filtered by alias. For example description of interfaces are: sw-sge2000, r-2850, srv-nas, pc-01, pc-02 but I'm interested about interfaces with names started with sw-, r-, srv- I don't want triggers about pc-01, pc-02.
For this purpose I used original "Template Module Interfaces SNMP" attached with Zabbix 5.04 and modified probled expression of trigger prototype "Interface {#IFNAME}({#IFALIAS}): Link down from original:
Code:
{$IFCONTROL:"{#IFNAME}"}=1 and
({Template Module Interfaces SNMP:net.if.status[ifOperStatus.{#SNMPINDEX}].last()}=2 and {Template Module Interfaces SNMP:net.if.status[ifOperStatus.{#SNMPINDEX}].diff()}=1)
Code:
[B]{{#IFALIAS}.regexp({$INTF_REGEX})}=1 and[/B]
{$IFCONTROL:"{#IFNAME}"}=1 and
({Template Module Interfaces SNMP:net.if.status[ifOperStatus.{#SNMPINDEX}].last()}=2 and {Template Module Interfaces SNMP:net.if.status[ifOperStatus.{#SNMPINDEX}].diff()}=1)
Unfortunately it doesn't works I get error:
Code:
Invalid expression [{{#IFALIAS}.regexp("sw-*")}=1 and
1=1 and
({28933}=2 and {28934}=1)]
Code:
[B]{{#IFALIAS}.regexp({$INTF_REGEX})}=1 and[/B]
The SNMP OID rule is following:
Code:
discovery[
{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,
{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,
{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,
{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,
{#IFDESCR},1.3.6.1.2.1.2.2.1.2,
{#IFTYPE},1.3.6.1.2.1.2.2.1.3]
Modified trigger prototype:
Error message:
Comment