Hello,
I have a problem with regular expression in zabbix. I want to get number of processes but the keyword "foobar" has in two processes. One is just "foobar" another is "- -foobar". I used the below regex but they don't work
the processes are like this :
/xxx/xx/xxx foobar xxx xxx xxx
/xxx/xx/xxx - -foobar xxx xxx xxx
proc.num[,root,,\bfoobar\b] when I use this it picks both processes
proc.num[,root,,(\b)(?<!--)foobar+] when I use this in regex calculator it works but in zabbix it returns 0 https://regex101.com/r/rqPB0w/1 https://regex101.com/r/NJ7jOZ/1
Is that zabbix bug ?
I have a problem with regular expression in zabbix. I want to get number of processes but the keyword "foobar" has in two processes. One is just "foobar" another is "- -foobar". I used the below regex but they don't work
the processes are like this :
/xxx/xx/xxx foobar xxx xxx xxx
/xxx/xx/xxx - -foobar xxx xxx xxx
proc.num[,root,,\bfoobar\b] when I use this it picks both processes
proc.num[,root,,(\b)(?<!--)foobar+] when I use this in regex calculator it works but in zabbix it returns 0 https://regex101.com/r/rqPB0w/1 https://regex101.com/r/NJ7jOZ/1
Is that zabbix bug ?
Comment