RRDcached and graphs

Hello! I am having an issue with rrdcached. When I run the service as a unix socket, graphs are created and updated just fine. However, I am attempting to switch to a distributed polling setup and need rrdcached to run as a network service. When I set config.php to use 127.0.0.1:42217, the graphs show “Error Drawing Graphs”. As soon as I switch back to unix socket, the graphs appear just fine.

System Info:
CentOS 7.3.1611 nginx-1.10.2 memcached-1.4.15 rrdtool-1.4.8

config.php that works:
$config['rrdcached'] = "unix:/var/run/rrdcached/rrdcached.sock";

config.php that does not work:
$config['rrdcached'] = "127.0.0.1:42217";

Note that I am changing the actual service settings to run as a socket or as a network service.

rrdcached settings as unix socket:
OPTIONS="-w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/lib/rrdcached/journal/ -l unix:/var/run/rrdcached/rrdcached.sock -t 4 -F -b /opt/librenms/rrd/ -p /run/rrdcached.pid"

rrdcached settings as network service:
OPTIONS="-w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/lib/rrdcached/journal/ -l 0:42217 -t 4 -F -b /opt/librenms/rrd/ -p /run/rrdcached.pid"

Also note that when rrdcached is running with -l 0:42217, I can telnet to 127.0.0.1:42217 and get a response:
$ telnet 127.0.0.1 42217 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. help 10 Command overview UPDATE <filename> <values> [<values> ...] FLUSH <filename> FLUSHALL PENDING <filename> FORGET <filename> QUEUE STATS HELP [<command>] BATCH QUIT quit Connection closed by foreign host.

validate.php output when attempting rrdcached as network service:
$ sudo ./validate.php Version info: [WARN] Your install is out of date: 2489e70d8a3c34ae5c00204264dc01f41a22ada4 (Sun, 31 Jul 2016 17:46:15 +0200) [WARN] Your local git contains modified files, this could prevent automatic updates. Modified files: html/pages/logon.inc.php DB Schema: 173 PHP: 7.0.16 MySQL: 5.5.52-MariaDB RRDTool: 1.4.8 SNMP: NET-SNMP version: 5.7.2 [OK] Database connection successful

The modified logon.inc.php is just a logo change, so I don’t think that would affect rrdcached.

Anyone have any ideas?

Click one of the graphs, click show rrd command and then paste the output you see.

Thanks for the reply! I ended up keeping it as a unix socket, and using nginx as a stream proxy pass for networked pollers (needed to install nginx from the official nginx repo to get TCP/UDP streaming support).

I think the CentOS-nginx and Distributed Polling docs definitely need some TLC to get them to a working solution.

Please submit the changes you feel are needed to the docs