PDA

View Full Version : LLD filters for not something


ahowell
30-01-2012, 06:35
Hi,

I've got a network interface discovery rule that I'd like to filter out lo0 from (solaris agent doesn't seem to support byte and error counts for lo0)

Can anyone give me some help with a regexp that excludes lo0.

I've tried the following which don't work

^(?:[^l]+|l(?!o0))*$
^(?:(?!lo0).)*$
^((?!lo0).)*$
^((?!lo0).*)$

bcrowder
01-02-2012, 18:31
I haven't found a way to do this either. Zabbix server uses the POSIX regcomp and regexec, which don't support lookarounds. :(

richlv
06-02-2012, 18:48
zabbix server supports extended posix, so pcre style regexps won't work. you could do something as ugly as [^l][^o][^0] ...

feel free to vote on the following issues :)
https://support.zabbix.com/browse/ZBXNEXT-581
https://support.zabbix.com/browse/ZBXNEXT-1008

ahowell
07-02-2012, 02:36
I'd already voted for both of them :)