Following the cookbook to install and configure rrdcached according to CentOS 7 or 8 I had rrdcached up and running (after changing $config[‘rrdcached’] from “unix:/var/run/rrdcached.sock”; to “unix:/usr/lib/systemd/system/rrdcached.socket”; ) though my graphs wouldn’t work. After some tweaking, I seem to have broken rrdcached…
Starting the service reports:
systemctl status rrdcached.service
● rrdcached.service - Data caching daemon for rrdtool
Loaded: loaded (/etc/systemd/system/rrdcached.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-01-18 16:35:12 CST; 39s ago
Process: 11218 ExecStart=/usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/run/rrdcached.sock -t 4 -F -b /opt/librenm>Jan 18 16:35:12 libre.redacted systemd[1]: Starting Data caching daemon for rrdtool…
Jan 18 16:35:12 libre.redacted rrdcached[11218]: Failed to create base directory ‘/opt/librenms/rrd/’: Permission denied
Jan 18 16:35:12 libre.redacted systemd[1]: rrdcached.service: Control process exited, code=exited status=3
Jan 18 16:35:12 libre.redacted systemd[1]: rrdcached.service: Failed with result ‘exit-code’.
Jan 18 16:35:12 libre.redacted systemd[1]: Failed to start Data caching daemon for rrdtool.
Output of my ./validate.php:
bash-4.4$ ./validate.php
Component Version LibreNMS 21.12.1-30-g898aafcdd DB Schema 2021_25_01_0129_isis_adjacencies_nullable (229) PHP 7.3.20 Python 3.6.8 MySQL 10.3.28-MariaDB RRDTool 1.7.0 SNMP 5.8 ====================================
[OK] Composer Version: 2.2.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct