question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Perl regex syntax no longer accepted in any filter (plugin 4.2)

See original GitHub issue

Describe the bug After update to 4.2.1 plugin (and grafana 8.1.1) any panel with an item/application/host/group filter that uses Perl regex syntax will show no-data. Using simpler regex syntax shows data as normal. Tried to switch from old “Graph” viz to the new “Time series” without any change in behaviour.

Expected behavior Time-series graph shown also for Perl regex syntax filters as the same syntax worked previously (grafana 7.x/8.0 and plugin 4.1.5). Edit: it also works with grafana 8.1.2+plugin 4.1.5 (but that has other issues)

Network data

{“queries”:[{“application”:{“filter”:“CPU”},“countTriggers”:true,“functions”:[],“group”:{“filter”:“/^Linux servers$/”},“host”:{“filter”:“/^mgc01$/”},“item”:{“filter”:“/^CPU (?!idle|usage|ready)/”},“minSeverity”:3,“options”:{“disableDataAlignment”:false,“showDisabledItems”:false,“skipEmptyValues”:false,“useZabbixValueMapping”:false},“proxy”:{“filter”:“”},“queryType”:“0”,“refId”:“A”,“resultFormat”:“time_series”,“table”:{“skipEmptyValues”:false},“tags”:{“filter”:“”},“trigger”:{“filter”:“”},“triggers”:{“acknowledged”:2,“count”:true,“minSeverity”:3},“itemTag”:{“filter”:“Application: CPU”},“datasource”:“Zabbix”,“datasourceId”:1,“intervalMs”:10000,“maxDataPoints”:931}],“range”:{“from”:“2021-08-12T05:34:20.111Z”,“to”:“2021-08-12T08:34:20.111Z”,“raw”:{“from”:“now-3h”,“to”:“now”}},“from”:“1628746460111”,“to”:“1628757260111”}

{“results”:{“A”:{“error”:“error parsing regexp: invalid or unsupported Perl syntax: (?!”,“frames”:[]}}}

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
8.1.1 5.2.7 4.2.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:34 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
alexanderzobnincommented, Sep 1, 2022

Since this issue is quite critical and it’s a blocker for many users, I decided to release it as soon as possible. So here’s a 4.2.10 release https://github.com/alexanderzobnin/grafana-zabbix/releases/tag/v4.2.10 Plugin also submitted to grafana.com, but it may take time to verify. So if you want to upgrade, you can run

grafana-cli --pluginUrl https://github.com/alexanderzobnin/grafana-zabbix/releases/download/v4.2.10/alexanderzobnin-zabbix-app-4.2.10.zip plugins install alexanderzobnin-zabbix-app

then restart grafana server

5reactions
vryzhevskycommented, Jan 24, 2022

Any update in this? It is really critical. Regular expressions are widely beeing used in Grafana. So if you broke regexp, you broke many things!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Perl regex syntax no longer accepted in any filter (plugin 4.2.1 ...
After update to 4.2.1 plugin (and grafana 8.1.1) any panel with an item/application/host/group filter that uses Perl regex syntax will show no- ...
Read more >
perlre - Perl regular expressions - Perldoc Browser
A single /x tells the regular expression parser to ignore most whitespace that is neither backslashed nor within a bracketed character class. You...
Read more >
Regular Expression Syntax - Ruleset - Wazuh documentation
This library is designed to be simple while still supporting the most common regular expressions. Supported expressions. Expressions. Valid characters. \w. A-Z, ...
Read more >
NetgrepPlugin < Plugins < TWiki
Syntax Rules ; filter, patterns to search form, written as computer language (Perl) regular expressions, none ; format, Format for displaying results, Global ......
Read more >
regex - What is the best regular expression to check if a string ...
How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found