Renaming a device causes gaps in RRD graphs with RRDCached

When using renamehost.php the objects get correctly renamed in the DB. But RRDCached is not notified. This causes the following errors when the poller tries to update the graphs;

Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id397638.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id397638.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id397639.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id397639.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id399407.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id399407.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id399408.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id399408.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id399409.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id399409.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id399410.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id399410.rrd': No such file or directory)
Feb 16 11:05:04 xxx rrdcached[2530468]: queue_thread_main: rrd_update_r (/opt/librenms/rrd/xxx/port-id431643.rrd) failed with status -1. (opening '/opt/librenms/rrd/xxx/port-id431643.rrd': No such file or directory)

This issue is resolved when restarting RRDCached. So this issue might be fixed by sending a notify to RRDCached upon renaming a device.

Setup;

====================================
Component | Version
--------- | -------
LibreNMS  | 21.1.0
DB Schema | 2020_10_12_095504_mempools_add_oids (191)
PHP       | 7.3.20
Python    | 3.6.8
MySQL     | 10.3.17-MariaDB
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.8
====================================

This topic was automatically closed 186 days after the last reply. New replies are no longer allowed.