Hi there,
I know Zabbix's regexps are supposed to be POSIX compliant.
But sometimes I forget and setup regexps like:
^Serial.+:\d+ [Result is FALSE]
Oddly enough, on the regexp-tester, it'll set the result as FALSE (as I would want for aliases) for:
Serial0/0/0:20
But, applied as a filter, the interface will not be ignored.
Off course when I change it to:
^Serial.+:[0-9]+
It'll work as expected.
Is this "normal" behaviour? Shouldn't \d+ work? Perhaps an issue with \ or different methods being used to match regexp (php versus c?)
I know Zabbix's regexps are supposed to be POSIX compliant.
But sometimes I forget and setup regexps like:
^Serial.+:\d+ [Result is FALSE]
Oddly enough, on the regexp-tester, it'll set the result as FALSE (as I would want for aliases) for:
Serial0/0/0:20
But, applied as a filter, the interface will not be ignored.
Off course when I change it to:
^Serial.+:[0-9]+
It'll work as expected.
Is this "normal" behaviour? Shouldn't \d+ work? Perhaps an issue with \ or different methods being used to match regexp (php versus c?)