Hello,
Im new in Zabbix and now dealing with this specific problem. We have lots of switches with houndreds of interfaces and not all of them are interesting for us. we want to gather data from them but dont know to notify about them. Fot this we marked those interfaces with mark # to their alias. Problem expression for "Link down" looks like this:
{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) and "{#IFALIAS}"<>"#"
i only add last condition which works only when alias is "#" and nothing else.
My question is - how can i add any regular expression here as for example "^#*" not working at all.
I need to construct expression to check only if first character is # and could have any other characters folowing. for example #test or #deploy
thanks in advance
Ivo
Im new in Zabbix and now dealing with this specific problem. We have lots of switches with houndreds of interfaces and not all of them are interesting for us. we want to gather data from them but dont know to notify about them. Fot this we marked those interfaces with mark # to their alias. Problem expression for "Link down" looks like this:
{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) and "{#IFALIAS}"<>"#"
i only add last condition which works only when alias is "#" and nothing else.
My question is - how can i add any regular expression here as for example "^#*" not working at all.
I need to construct expression to check only if first character is # and could have any other characters folowing. for example #test or #deploy
thanks in advance
Ivo
Comment