Error drawing graph in pi-hole app

Hi,

I’ve setup Librenms on Ubuntu 20.04 ngnix for several weeks and it works fine. Until somtime last week I found that the pi-hole application graph has failed to create all graphs. This happen on both Firefox on PC and Chrome on iPad.

librenms@libranms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.64.1-375-gb9f80d32b
DB Schema | 2020_06_23_00522_alter_availability_perc_column (170)
PHP       | 7.4.3
Python    | 3.8.2
MySQL     | 10.3.22-MariaDB-1ubuntu1
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.8
====================================
[OK]    Composer Version: 1.10.8
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
librenms@libranms:~$

RRDTool Command and Output

RRDTool Command
rrdtool graph /tmp/IuBznGqXWAhK0Ssg  --alt-autoscale-max --rigid -E --start 1593476400 --end 1593562800 --width 1089 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal -c FONT#000000 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal -l 0 -E --start 1593476400 --end 1593562800 --width 1089 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal -c FONT#000000 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal COMMENT:'Que...                             Now         Min         Max        Avg\l' COMMENT:'\l' DEF:query_a4=192.168.1.4/app-pi-hole-21.rrd:query_a:AVERAGE  DEF:query_a4min=192.168.1.4/app-pi-hole-21.rrd:query_a:MIN  DEF:query_a4max=192.168.1.4/app-pi-hole-21.rrd:query_a:MAX  LINE2:query_a4#000000:'A Type                    ' AREA:query_a4#00000033:'' GPRINT:query_a4:LAST:%6.2lf%s GPRINT:query_a4min:MIN:%6.2lf%s GPRINT:query_a4max:MAX:%6.2lf%s GPRINT:query_a4:AVERAGE:'%6.'.2.'lf%s\n' COMMENT:'\n' DEF:query_aaaa4=192.168.1.4/app-pi-hole-21.rrd:query_aaaa:AVERAGE  DEF:query_aaaa4min=192.168.1.4/app-pi-hole-21.rrd:query_aaaa:MIN  DEF:query_aaaa4max=192.168.1.4/app-pi-hole-21.rrd:query_aaaa:MAX  LINE2:query_aaaa4#657C5E:'AAAA Type                 ' AREA:query_aaaa4#657C5E33:'' GPRINT:query_aaaa4:LAST:%6.2lf%s GPRINT:query_aaaa4min:MIN:%6.2lf%s GPRINT:query_aaaa4max:MAX:%6.2lf%s GPRINT:query_aaaa4:AVERAGE:'%6.'.2.'lf%s\n' COMMENT:'\n' DEF:query_ptr4=192.168.1.4/app-pi-hole-21.rrd:query_ptr:AVERAGE  DEF:query_ptr4min=192.168.1.4/app-pi-hole-21.rrd:query_ptr:MIN  DEF:query_ptr4max=192.168.1.4/app-pi-hole-21.rrd:query_ptr:MAX  LINE2:query_ptr4#F44842:'PTR Type                  ' AREA:query_ptr4#F4484233:'' GPRINT:query_ptr4:LAST:%6.2lf%s GPRINT:query_ptr4min:MIN:%6.2lf%s GPRINT:query_ptr4max:MAX:%6.2lf%s GPRINT:query_ptr4:AVERAGE:'%6.'.2.'lf%s\n' COMMENT:'\n' DEF:query_srv4=192.168.1.4/app-pi-hole-21.rrd:query_srv:AVERAGE  DEF:query_srv4min=192.168.1.4/app-pi-hole-21.rrd:query_srv:MIN  DEF:query_srv4max=192.168.1.4/app-pi-hole-21.rrd:query_srv:MAX  LINE2:query_srv4#912925:'SRV Type                  ' AREA:query_srv4#91292533:'' GPRINT:query_srv4:LAST:%6.2lf%s GPRINT:query_srv4min:MIN:%6.2lf%s GPRINT:query_srv4max:MAX:%6.2lf%s GPRINT:query_srv4:AVERAGE:'%6.'.2.'lf%s\n' COMMENT:'\n' --daemon unix:/var/run/rrdcached.sock

RRDTool Output
ERROR: invalid format string '%6..2.lf%s\n' (should match '^(?:[^%]+|%%)*%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfFgG](?:[^%]+|%%)*(?:%[sS])?(?:[^%]+|%%)*$')

Same thing happens with power-dns apps.

This stopped working about a week now.

Same here, immediately after upgrade to latest version (as of today).

I’m experiencing the same with:
Pi-hole graphs (all broken)
Apcupsd graphs (2 graphs showing Error drawing Graph)
Unbound Queries graph is broken too - there is fix in this thread, I fixed it manually on my end, guess now we wait on someone who understands github and what something called “pr” is to put it into official librenms build

edit: forgot to mention the snmp scripts on pertaining hosts return correct data when launched manually

Looking at my graphs and the RRDTool Output I see this:

ERROR: bad format for GPRINT in '%6..2.lf%s\n'

Didn’t check the graph for some days. Checked this morning and the pi-hole graphs are all OK. Someone has fixed it. Thanks.