Graphs preview fine, but don't display directly - RRD error "cannot compile regular expression"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
AndyH
Posts: 8
Joined: Fri Nov 15, 2013 7:48 am

Graphs preview fine, but don't display directly - RRD error "cannot compile regular expression"

Post by AndyH »

I have an issue with our 0.8.8g installation (we cannot upgrade to v1 due to reliance on the Network Weathermap plugin, which is unsupported).

Graphs/RRDs are updating and can be previewed, but if you click on a graph, the per-RRA images are all broken.

Graph debug shows the following error:

Code: Select all

RRDTool Says:
ERROR: cannot compile regular expression: Error while compiling regular expression ^(?:[^%]+|%%)*%[+- 0#]?[0-9]*([.][0-9]+)?l[eEfF](?:[^%]+|%%)*%s(?:[^%]+|%%)*$ at char 18: range out of order in character class (^(?:[^%]+|%%)*%[+- 0#]?[0-9]*([.][0-9]+)?l[eEfF](?:[^%]+|%%)*%s(?:[^%]+|%%)*$)
This only appears to have occurred in the past few days at most but I don't have an exact time for the problem occurring.

EDIT:

RRDtool is version 1.4.8 but appears to have been compiled yesterday, so I'm wondering if an update to RRDtool has caused this behaviour?

Code: Select all

 rrdtool --help
RRDtool 1.4.8  Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Mar  1 2020 13:50:40
EDIT:

It looks like RRDtool was updated:

Code: Select all

cat /var/log/apt/history.log

Start-Date: 2020-03-02  06:33:54
Commandline: /usr/bin/unattended-upgrade
Upgrade: librrd4:amd64 (1.4.8-1.2, 1.4.8-1.2+deb8u1), librrdp-perl:amd64 (1.4.8-1.2, 1.4.8-1.2+deb8u1), rrdtool:amd64 (1.4.8-1.2, 1.4.8-1.2+deb8u1), librrds-perl:amd64 (1.4.8-1.2, 1.4.8-1.2+deb8u1)
End-Date: 2020-03-02  06:34:30
EDIT:

This appears to be being caused by GPRINT in some fashion - RRDtool executes successfully on the CLI using the "RRDtool command" output from Cacti's graph debug for an example graph, but only if the GPRINT lines are omitted. If they are included, the same error is displayed.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests