Some CollectD Graphs Return "Not found [500]" Error

Hello all,

I have collectd running locally on my LibreNMS host, collecting basic information (CPU, memory, load, interfaces) and outputting that data via rrd:

/etc/collectd.conf:

<Plugin rrdtool>
        DataDir "/appspace/librenms/rrd/collectd"
        CreateFilesAsync false
        CacheTimeout 120
        CacheFlush   900
        WritesPerSecond 50
</Plugin>

/etc/collectd.d/rrdtool.conf:

LoadPlugin rrdtool
<Plugin rrdtool>
       DataDir "/appspace/librenms/rrd/collectd"
       CacheTimeout 120
       CacheFlush   900
</Plugin>

/appspace/librenms/config.php:

$config['collectd_dir'] = '/appspace/librenms/rrd/collectd';

I see the rrd files being created and populated with data correctly. When attempting to view graphs via LibreNMS, it appears that some load properly (interface and load graphs) but others (cpu and memory) give a “Not found [500]” error.

Not entirely sure if this helps, but if I append &debug to the end of one of the broken graphs, I’m given the following output:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /appspace/librenms/includes/html/collectd/definitions.php on line 1797

Warning: Invalid argument supplied for foreach() in /appspace/librenms/includes/html/collectd/definitions.php on line 1799

Warning: Invalid argument supplied for foreach() in /appspace/librenms/includes/html/collectd/definitions.php on line 1799

Warning: Invalid argument supplied for foreach() in /appspace/librenms/includes/html/collectd/definitions.php on line 1799

Warning: Invalid argument supplied for foreach() in /appspace/librenms/includes/html/collectd/definitions.php on line 1799

Warning: Cannot modify header information - headers already sent by (output started at /appspace/librenms/includes/html/collectd/definitions.php:1797) in /appspace/librenms/includes/html/graphs/device/collectd.inc.php on line 253
Would have executed: /usr/bin/rrdtool 'graph' '-' '-E' '-a' 'PNG' '-w' '459' '-h' '213' '-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' '-b' '1024' 'COMMENT:Bytes Cur Min Ave Max\l' 'CDEF:_stk=_nnl' -s 1570558200 -e 1570644908 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono
graph /tmp/BOrInbIjhSRB5tCv --alt-autoscale-max --rigid -E --start 1570558200 --end --width 459 --height 213 -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 HRULE:0#555555 --title='Graph Definition Error' --daemon unix:/run/rrdcached.sock

command returned (ERROR: end time: There should be number after '-' )


Runtime 0.195s
MySQL [6/0.00s]: Cell[2/0.00s] Row[0/0.00s] Rows[2/0.00s] Column[2/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]

Here is the ouput of ./validate.php:

====================================
Component | Version
--------- | -------
LibreNMS  | 1.56-16-gae84049
DB Schema | 2019_10_03_211702_serialize_config (144)
PHP       | 7.2.22
MySQL     | 5.5.64-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.9.0
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Any and all help is greatly appreciated! Let me know if I’ve left out any useful information.

B/R
Ed

It’s a long time ago. did you find a solution for that?
i have the same problems. some graphs show up but some not. all graphs are generated in /var/lib/collectd/rrd (in my case)