This works for me:
=> /etc/default/rrdcached
0: start rrdcached on boot, 1: do not start rrdcached on boot
default: 0
DISABLE=0
options to be passed to rrdcached
(do not specify -p - this is handled by the init script)
default: see /etc/init.d/rrdcached
OPTS="-w 1800 -z 1800 -f 3600 -s librenms -j /var/tmp -l unix:/var/run/rrdcached.sock -t4 -F -b /opt/librenms/rrd/"
number of seconds to wait for rrdcached to shut down
(writing the data to disk may take some time;
tune this according to your setup)
default: 30
MAXWAIT=30
0: do not enable core-files, 1: enable core-files ... if rrdcached crashes
default: 0
ENABLE_COREFILES=0
=> /opt/librenms/config.php
Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
and that your web server has permission to talk to rrdcached.
$config['rrdcached'] = "unix:/var/run/rrdcached.sock";