Hi All,
some of my devices are not graphing when i run a manual poller.php I get the following error.
RRD[update xx.xx.xx.xx/poller-perf-applications.rrd N:18.201302051544 --daemon xx.xx.xx.xx:42217]
RRDtool Output: ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-access-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-auth-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-acct-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_access-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_auth-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_acct-270.rrd
ERROR: rrdcached: No such file: /mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-queue-270.rrd
for some reason its saying that there is no such file but when i check in that dir I see the following files.
-rwxrwxrwx 1 root root 494576 May 12 10:40 app-freeradius-access-270.rrd*
-rwxrwxrwx 1 root root 864152 May 12 10:40 app-freeradius-acct-270.rrd*
-rwxrwxrwx 1 root root 740960 May 12 10:40 app-freeradius-auth-270.rrd*
-rwxrwxrwx 1 root root 494576 May 12 10:40 app-freeradius-proxy_access-270.rrd*
-rwxrwxrwx 1 root root 864152 May 12 10:40 app-freeradius-proxy_acct-270.rrd*
-rwxrwxrwx 1 root root 740960 May 12 10:40 app-freeradius-proxy_auth-270.rrd*
-rwxrwxrwx 1 root root 864152 May 12 10:40 app-freeradius-queue-270.rrd*
Please note that this is on my secondary poller and when I check on my Main poller which is running LibreNMS I’m not seeing any files in that dir.
Manually creating those files give the following error.
ERROR: rrdcached: RRD Error: mmaping file ‘/mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-acct-270.rrd’: Invalid argument
ERROR: rrdcached: RRD Error: mmaping file ‘/mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_access-270.rrd’: Invalid argument
ERROR: rrdcached: RRD Error: mmaping file ‘/mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_auth-270.rrd’: Invalid argument
ERROR: rrdcached: RRD Error: mmaping file ‘/mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-proxy_acct-270.rrd’: Invalid argument
ERROR: rrdcached: RRD Error: mmaping file ‘/mnt/data-01/rrd/xx.xx.xx.xx/app-freeradius-queue-270.rrd’: Invalid argument
Seems to me there is a issue with the RRDcache its not pushing these files from my secondary to primary or primary is not pulling from secondary.
I think you have misunderstood.
rrdcached does not allow redundancy. All pollers/instances must point to the same rrdcached.
Hi Murrant my main rrdcached is running on my primary LibreNMS server.
so my 2 pollers are pointing to the same rrdcached server.
Thanks
Did you set your rrdtool version on both servers?
@murrant here is my config.php
Primary server = 1.1.1.1 (rrdcached installed on this server)
Secondary Server 1.1.1.2
Primary Server Config:
$config[‘distributed_poller_name’] = php_uname(‘n’);
$config[‘distributed_poller_group’] = ‘0’;
$config[‘distributed_poller_memcached_host’] = “1.1.1.1”;
$config[‘distributed_poller_memcached_port’] = 11211;
$config[‘distributed_poller’] = true;
$config[‘rrdcached’] = “1.1.1.1:42217”;
$config[‘rrdcached’] = “unix:/run/rrdcached.sock”;
$config[‘rrdtool_version’] = ‘1.5.5’;
Secondary Server config:
$config[‘distributed_poller_name’] = php_uname(‘n’);
$config[‘distributed_poller_group’] = ‘1’;
$config[‘distributed_poller_memcached_host’] = “1.1.1.1”;
$config[‘distributed_poller_memcached_port’] = 11211;
$config[‘distributed_poller’] = true;
$config[‘rrdcached’] = “1.1.1.1:42217”;
Ahh i see!!
Thanks for pointing me in the right direction.
added to my secondary config.php>
$config['rrdtool_version'] = '1.5.5';
its working now
Thank you very much
Looks like the second server is not allowed to create rrd files because you haven’t set the version.
Perfect Thank you very much!