Rrdtool errors with collected monitoring chrony

Hi all,

I've installed chrony as client and server and it seems to be working fine. Also, I am trying to monitor chrony with collectd but I'm receiving a lot of rrdtool errors in the system log. It seems it's trying to update using same time repeatedly. I have no idea what would cause this. I’d appreciate any help anyone could provide. Thank you!

The time never changes from 1765865543.

Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: Filter subsystem: Built-in target write': Dispatching value to all write plugins failed with status -1. Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: Filter subsystem: Built-in target write': Some write plugin is back to normal operation. `write' succeeded.
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_stratum-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_state-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_mode-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_last_meas-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/time_offset-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_skew_ppm-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/frequency_error-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_reachability-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_stratum-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:22 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_state-[UNKNOWN].rrd: illegal attempt to update using time 1765865543 when last update time is 1765865543 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_stratum-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_state-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_mode-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_reachability-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_last_meas-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/time_offset-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_skew_ppm-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/frequency_error-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_mode-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_reachability-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_last_meas-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/time_offset-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_skew_ppm-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/frequency_error-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_state-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
Tue Dec 16 00:12:52 2025 daemon.err collectd[8842]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/chrony/clock_stratum-[UNKNOWN].rrd: illegal attempt to update using time 1765865573 when last update time is 1765865573 (minimum one second step)
root@OpenWrt:~# cat /etc/chrony/chrony.conf
# Load UCI configuration
confdir /var/etc/chrony.d

# Load NTP servers from DHCP if enabled in UCI
sourcedir /var/run/chrony-dhcp

# Log clock errors above 0.5 seconds
logchange 0.5

# Don't log client accesses
#noclientlog

# Mark the system clock as synchronized
rtcsync

# Record the clock's drift
driftfile /var/run/chrony/drift

# Save NTS keys and cookies
ntsdumpdir /var/run/chrony

# Allow
allow 192.168.1.1/24
allow 192.168.2.1/24
root@OpenWrt:~# cat /etc/config/chrony
config pool
        option hostname 'time.cloudflare.com'
        option maxpoll '12'
        option iburst 'yes'
        option nts 'yes'

config pool
        option hostname 'ohio.time.system76.com'
        option maxpool '12'
        option iburst 'yes'
        option nts 'yes'

config dhcp_ntp_server
        option iburst 'yes'
        option disabled 'no'

config allow
        option interface 'lan'

config makestep
        option threshold '1.0'
        option limit '3'

config nts
        option rtccheck 'yes'
        option systemcerts 'yes'
root@OpenWrt:~# cat /etc/collectd.conf
BaseDir "/var/run/collectd"
Include "/etc/collectd/conf.d/*.conf"
PIDFile "/var/run/collectd.pid"
PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db"
Interval 30
ReadThreads 2

LoadPlugin chrony
<Plugin chrony>
        Host "127.0.0.1"
        Port "323"
        Timeout 2
</Plugin>

LoadPlugin cpu
<Plugin cpu>
        ValuesPercentage true
        ReportByCpu true
        ReportByState true
</Plugin>

LoadPlugin interface
<Plugin interface>
        Interface "eth0"
        Interface "eth1"
        Interface "eth1.2"
</Plugin>

LoadPlugin load

LoadPlugin memory
<Plugin memory>
        ValuesPercentage false
        ValuesAbsolute true
</Plugin>

LoadPlugin rrdtool
<Plugin rrdtool>
        DataDir "/tmp/rrd"
        RRARows 288
        RRASingle true
        RRATimespan 7200
        RRATimespan 86400
        RRATimespan 604800
        RRATimespan 2678400
        RRATimespan 31622400
</Plugin>

LoadPlugin sensors
<Plugin sensors>
        Sensor "cpu_thermal-virtual-0/temperature-temp1"
        Sensor "gpu_thermal-virtual-0/temperature-temp1"
</Plugin>

This is resolved. I had time servers configured as pools rather than servers. While chrony didn’t mind, collectd did.

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