RRD Cached on Ubuntu 18.04 exhausting ram & swap

Hi!

I’m working on migration librenms ubuntu 16.04 to ubuntu 18.04 with ± 1200 devices.

For migration, i’ve following link below

I’m following link below for installation librenms on ubuntu 18.04 environment. and I stop at web config section.

db & rrd migration is sucessful, bur when I try to install rrdcached on ubuntu 18.04 environtment the trouble appear :smiley:

after several hour after rrdcached installation, the poller stop working. the librenms log:

rrdcached status:

memory usage:
librenms_swap

and I try to stop rrdcached services, the poller start to poll again
librenms_polled

and the swap slowly decreasing
librenms_swap2

for the rrdcached installation, I follow link below. Because there is no tutorial for ubuntu 18.04 I followed the ubuntu 16.04 version

Any suggestion for this issue?
Thanks!

The logs say it can’t read your rrd files. Make sure your rrd/ directory is recursively owned by librenms:librenms:

This will show you if any files are not owned by librenms, and list them for you

find /opt/librenms/rrd ! -user librenms -ls

Do the same for the rrdcached journal directory

find /var/lib/rrdcached/journal/ ! -user librenms -ls

If you find any matches for those command, chown librenms:librenms those files and or directories.

Also, make sure your config.php has the proper path to your unix socket (make sure that is the socket you have rrdcached configured for)

$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;