[rrd-users] Rrdcache permission problem

Steve Shipway s.shipway at auckland.ac.nz
Tue Mar 5 11:08:06 CET 2013

Since you specified -b (base directory) and -B (base directory only) when starting rrdcached, it means that you can only specify RRD files relative to the base directory.

10452 ?        Ssl    0:00 /usr/bin/rrdcached -s nagios -l
unix:/var/run/rrdcached.sock -j /var/lib/rrdcached/journal/ -F -b
/var/lib/rrdcached/db/ -B -p /var/run/rrdcached.pid

In this case, the base directory is /var/lib/rrdcached/db

2013-03-05 10:01:08 [14395] [0] RRDs::update
/var/lib/pnp4nagios/perfdata/server/Kernel_pgmajfault.rrd 1362474068:0
2013-03-05 10:01:08 [14395] [0] RRDs::update ERROR rrdcached:
Permission denied

When you try to update /var/lib/pnp4nagios/perfdata/server/Kernel_pgmajfault.rrd then you get permission denied, since this is not a relative path under the /var/lib/rrdcached/db base directory.

Try using '-b /var/lib/pnp4nagios/perfdata' and omit the -B

Also make sure the process calling the update has write permission to the socket.


Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487

More information about the rrd-users mailing list