Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing regexp: invalid or unsupported Perl syntax #1318

Closed
albech opened this issue Sep 28, 2021 · 3 comments
Closed

Error parsing regexp: invalid or unsupported Perl syntax #1318

albech opened this issue Sep 28, 2021 · 3 comments
Labels
Milestone

Comments

@albech
Copy link

albech commented Sep 28, 2021

When trying to query filesystems different than '/' no data is received.

Expected behavior
It is expected to pass data back to Grafana for the different filesystems.

Screenshots
On this screenshot it is clear that some Perl Regex is failing and probably the cause of this issue.
https://nixcloud.net/ui/s/7EwAKWtMoFmDPrs

Software versions

| Grafana | Zabbix | Grafana-Zabbix Plugin |
Grafana v8.1.5 (c725a4259a)
Zabbix 5.0 LTS
Zabbix Plugin Config 4.2.4

@jeffknerr
Copy link

Not sure if this is the same or not (error message looks similar). I have a web server with different partitions, and I can't get
data from /var/www, but all others work fine (/, /usr, /tmp). Error message from the query inspector is: error:"error parsing regexp: invalid or unsupported Perl syntax: (?w"

grafana 8.1.5
zabbix 5.4.4
zabbix plugin 4.2.4

@albech
Copy link
Author

albech commented Sep 28, 2021

I have done a ghetto Regex fix, by changing the Application to the appropriate filesystem and the Item to /.*Total/ and /.*Used/ to avoid using /'s inside the Regex. Hope this will help some people around this bug intil a fix is committed.

@alexanderzobnin alexanderzobnin added this to the 4.2.5 milestone Nov 1, 2021
alexanderzobnin added a commit that referenced this issue Feb 16, 2022
@alexanderzobnin
Copy link
Collaborator

That's a mistake in a filter parser, it parses regex in a wrong way (in your case filter is not a regex, but parser tries to parse it anyway).

@alexanderzobnin alexanderzobnin changed the title Not able to pull data from anything but '/' Error parsing regexp: invalid or unsupported Perl syntax Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants