Luci_statistics graphs empty for just one of my OpenWrt devices

I've got multiple OpenWrt systems that are gathering statistics with the luci_statistics package. One of them is set to receive statistics from all the others. It can display the stats for all but one of the systems. For that system, it shows blank data in the graphs, with all the numbers as nan (IEEE floating point "Not a Number" I presume).

I do see files getting updated in /var/rrd/<systemname>/ directories. And I can see with tcpdump that UDP packets are arriving at the collecting host from this system.

Any clues on what is not right? My only guess right now is maybe since the sender that doesn't get recorded is armv8 (64-bit) and the ones that work (sender/receiver) are armv7 (32-bit) that there might be a data format mismatch?

The collecting host (192.168.1.1), today's snapshot:

# ubus call system board
{
	"kernel": "6.1.82",
	"hostname": "XXX",
	"system": "ARMv7 Processor rev 0 (v7l)",
	"model": "Netgear Nighthawk X4S R7800",
	"board_name": "netgear,r7800",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "SNAPSHOT",
		"revision": "r25829-e6f7e9dca9",
		"target": "ipq806x/generic",
		"description": "OpenWrt SNAPSHOT r25829-e6f7e9dca9"
	}
}
# opkg list |egrep "statistics|collectd"
collectd - 5.12.0-r49
collectd-mod-cpu - 5.12.0-r49
collectd-mod-csv - 5.12.0-r49
collectd-mod-interface - 5.12.0-r49
collectd-mod-iwinfo - 5.12.0-r49
collectd-mod-load - 5.12.0-r49
collectd-mod-lua - 5.12.0-r49
collectd-mod-memory - 5.12.0-r49
collectd-mod-network - 5.12.0-r49
collectd-mod-ping - 5.12.0-r49
collectd-mod-rrdtool - 5.12.0-r49
collectd-mod-thermal - 5.12.0-r49
collectd-mod-write-graphite - 5.12.0-r49
luci-app-statistics - git-24.075.52231~38c1fa1

config statistics 'collectd'
	option BaseDir '/var/run/collectd'
	option Include '/etc/collectd/conf.d'
	option PIDFile '/var/run/collectd.pid'
	option PluginDir '/usr/lib/collectd'
	option TypesDB '/usr/share/collectd/types.db'
	option Interval '30'
	option ReadThreads '2'

config statistics 'rrdtool'
	option default_timespan '300'
	option image_width '600'
	option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
	option enable '1'
	option DataDir '/tmp/rrd'
	option RRARows '144'
	option RRASingle '1'
	list RRATimespans '5min'
	list RRATimespans '15min'
	list RRATimespans '1hour'
	list RRATimespans '2hours'
	list RRATimespans '6hours'
	list RRATimespans '1day'
	list RRATimespans '1week'
	list RRATimespans '1month'
	list RRATimespans '1year'
	option backup '1'

config statistics 'collectd_csv'
	option DataDir '/tmp/csv'

config statistics 'collectd_email'
	option enable '0'
	option SocketFile '/var/run/collectd/email.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_logfile'
	option enable '0'
	option LogLevel 'notice'
	option File '/var/log/collectd.log'
	option Timestamp '1'

config statistics 'collectd_network'
	option enable '1'

config statistics 'collectd_unixsock'
	option enable '0'
	option SocketFile '/var/run/collectd/query.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_apcups'
	option enable '0'
	option Host 'localhost'
	option Port '3551'

config statistics 'collectd_conntrack'
	option enable '0'

config statistics 'collectd_contextswitch'
	option enable '0'

config statistics 'collectd_cpu'
	option enable '1'
	option ReportByCpu '1'
	option ReportByState '1'
	option ValuesPercentage '1'

config statistics 'collectd_cpufreq'
	option enable '0'

config statistics 'collectd_curl'
	option enable '0'

config statistics 'collectd_df'
	option enable '0'
	option Devices '/dev/mtdblock/4'
	option MountPoints '/overlay'
	option FSTypes 'tmpfs'
	option IgnoreSelected '0'

config statistics 'collectd_disk'
	option enable '0'
	option Disks 'hda1 hdb'
	option IgnoreSelected '0'

config statistics 'collectd_dns'
	option enable '0'
	option Interfaces 'br-lan.1'
	option IgnoreSources '127.0.0.1'

config statistics 'collectd_entropy'
	option enable '0'

config statistics 'collectd_exec'
	option enable '0'

config statistics 'collectd_interface'
	option enable '1'
	list Interfaces 'br-lan.5'
	list Interfaces 'br-lan.3'
	list Interfaces 'br-lan.1'
	list Interfaces 'wan'

config statistics 'collectd_iptables'
	option enable '0'

config collectd_iptables_match
	option table 'nat'
	option chain 'luci_fw_postrouting'
	option target 'MASQUERADE'
	option source '192.168.1.0/24'
	option outputif 'br-ff'
	option name 'LAN-Clients traffic'

config collectd_iptables_match
	option chain 'luci_fw_postrouting'
	option table 'nat'
	option target 'MASQUERADE'
	option source '10.61.230.0/24'
	option outputif 'br-ff'
	option name 'WLAN-Clients traffic'

config statistics 'collectd_irq'
	option enable '0'
	option Irqs '2 3 4 7'

config statistics 'collectd_iwinfo'
	option enable '1'

config statistics 'collectd_load'
	option enable '1'

config statistics 'collectd_memory'
	option enable '1'
	option ValuesAbsolute '1'
	option ValuesPercentage '0'

config statistics 'collectd_netlink'
	option enable '0'
	option IgnoreSelected '0'
	option VerboseInterfaces 'br-lan.1'
	option QDiscs 'br-lan.1'

config statistics 'collectd_nut'
	option enable '0'
	list UPS 'myupsname'

config statistics 'collectd_olsrd'
	option enable '0'
	option Port '2006'
	option Host '127.0.0.1'

config statistics 'collectd_openvpn'
	option enable '0'

config statistics 'collectd_ping'
	option enable '1'
	option Interval '15'
	option TTL '127'
	option AddressFamily 'any'
	option MaxMissed '13'
	list Hosts 'many of them redacted'
	list Hosts 'many of them redacted'

config statistics 'collectd_processes'
	option enable '0'
	option Processes 'uhttpd dnsmasq dropbear'

config statistics 'collectd_sensors'
	option enable '0'

config statistics 'collectd_splash_leases'
	option enable '0'

config statistics 'collectd_tcpconns'
	option enable '0'
	option ListeningPorts '0'
	option LocalPorts '22 80'

config statistics 'collectd_thermal'
	option enable '1'
	list Device 'cooling_device0'
	list Device 'cooling_device1'
	option IgnoreSelected '1'

config statistics 'collectd_uptime'
	option enable '0'

config statistics 'collectd_chrony'

config statistics 'collectd_dhcpleases'

config statistics 'collectd_ipstatistics'

config statistics 'collectd_snmp6'

config statistics 'collectd_syslog'

config collectd_network_listen
	option host '192.168.1.1'
	option port '25826'

One of the sending hosts that works (172.31.1.1) (23.05.3):

# ubus call system board
{
	"kernel": "5.15.150",
	"hostname": "XXX",
	"system": "ARMv7 Processor rev 5 (v7l)",
	"model": "GL.iNet GL-B2200",
	"board_name": "glinet,gl-b2200",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "23.05.3",
		"revision": "r23809-234f1a2efa",
		"target": "ipq40xx/generic",
		"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
	}
}
# opkg list |egrep "statistics|collectd"
collectd - 5.12.0-49
collectd-mod-cpu - 5.12.0-49
collectd-mod-csv - 5.12.0-49
collectd-mod-interface - 5.12.0-49
collectd-mod-iwinfo - 5.12.0-49
collectd-mod-load - 5.12.0-49
collectd-mod-lua - 5.12.0-49
collectd-mod-memory - 5.12.0-49
collectd-mod-network - 5.12.0-49
collectd-mod-ping - 5.12.0-49
collectd-mod-rrdtool - 5.12.0-49
collectd-mod-write-graphite - 5.12.0-49
luci-app-statistics - git-24.034.36441-feee897
# cat /etc/config/luci_statistics

config statistics 'collectd'
	option BaseDir '/var/run/collectd'
	option PIDFile '/var/run/collectd.pid'
	option PluginDir '/usr/lib/collectd'
	option TypesDB '/usr/share/collectd/types.db'
	option Interval '30'
	option ReadThreads '2'
	option Include '/etc/collectd/conf.d/*.conf'

config statistics 'rrdtool'
	option default_timespan '1hour'
	option image_width '600'
	option image_height '150'
	option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
	option enable '1'
	option DataDir '/tmp/rrd'
	option RRARows '288'
	option RRASingle '1'
	list RRATimespans '5min'
	list RRATimespans '15min'
	list RRATimespans '1hour'
	list RRATimespans '2hours'
	list RRATimespans '6hours'
	list RRATimespans '1day'
	list RRATimespans '1week'
	list RRATimespans '1month'
	list RRATimespans '1year'
	option backup '1'

config statistics 'collectd_csv'
	option DataDir '/tmp/csv'

config statistics 'collectd_email'
	option enable '0'
	option SocketFile '/var/run/collectd/email.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_logfile'
	option enable '0'
	option LogLevel 'notice'
	option File '/var/log/collectd.log'
	option Timestamp '1'

config statistics 'collectd_network'
	option enable '1'

config statistics 'collectd_syslog'
	option enable '0'
	option LogLevel 'warning'
	option NotifyLevel 'WARNING'

config statistics 'collectd_unixsock'
	option enable '0'
	option SocketFile '/var/run/collectd/query.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_apcups'
	option enable '0'
	option Host 'localhost'
	option Port '3551'

config statistics 'collectd_chrony'
	option enable '0'
	option Host '127.0.0.1'
	option Port '323'
	option Timeout '2'

config statistics 'collectd_conntrack'
	option enable '0'

config statistics 'collectd_contextswitch'
	option enable '0'

config statistics 'collectd_cpu'
	option enable '1'
	option ReportByCpu '1'
	option ReportByState '1'
	option ShowIdle '0'
	option ValuesPercentage '1'

config statistics 'collectd_cpufreq'
	option enable '0'

config statistics 'collectd_curl'
	option enable '0'

config statistics 'collectd_df'
	option enable '0'
	option Devices '/dev/mtdblock/4'
	option MountPoints '/overlay'
	option FSTypes 'tmpfs'
	option IgnoreSelected '0'
	option ValuesPercentage '0'

config statistics 'collectd_dhcpleases'
	option enable '0'
	option Path '/tmp/dhcp.leases'

config statistics 'collectd_disk'
	option enable '0'
	option Disks 'hda1 hdb'
	option IgnoreSelected '0'

config statistics 'collectd_dns'
	option enable '0'
	option Interfaces 'br-lan.1'
	option IgnoreSources '127.0.0.1'

config statistics 'collectd_entropy'
	option enable '0'

config statistics 'collectd_exec'
	option enable '0'

config statistics 'collectd_interface'
	option enable '1'
	list Interfaces 'br-lan'
	list Interfaces 'wan'

config statistics 'collectd_ipstatistics'
	option enable '0'

config statistics 'collectd_iptables'
	option enable '0'

config collectd_iptables_match
	option table 'nat'
	option chain 'luci_fw_postrouting'
	option target 'MASQUERADE'
	option source '192.168.1.0/24'
	option outputif 'br-ff'
	option name 'LAN-Clients traffic'

config collectd_iptables_match
	option chain 'luci_fw_postrouting'
	option table 'nat'
	option target 'MASQUERADE'
	option source '10.61.230.0/24'
	option outputif 'br-ff'
	option name 'WLAN-Clients traffic'

config statistics 'collectd_irq'
	option enable '0'
	option Irqs '2 3 4 7'

config statistics 'collectd_iwinfo'
	option enable '1'

config statistics 'collectd_load'
	option enable '1'

config statistics 'collectd_memory'
	option enable '1'
	option ValuesAbsolute '1'
	option ValuesPercentage '0'

config statistics 'collectd_netlink'
	option enable '0'
	option IgnoreSelected '0'
	option VerboseInterfaces 'br-lan'
	option QDiscs 'br-lan'

config statistics 'collectd_nut'
	option enable '0'
	list UPS 'myupsname'

config statistics 'collectd_olsrd'
	option enable '0'
	option Port '2006'
	option Host '127.0.0.1'

config statistics 'collectd_openvpn'
	option enable '0'

config statistics 'collectd_ping'
	option TTL '127'
	option enable '1'
	option AddressFamily 'any'
	option Interval '33'
	list Hosts 'many of them redacted'
	list Hosts 'many of them redacted'
	option MaxMissed '7'

config statistics 'collectd_processes'
	option enable '0'
	option Processes 'uhttpd dnsmasq dropbear'

config statistics 'collectd_sensors'
	option enable '0'

config statistics 'collectd_snmp6'
	option enable '0'
	option Interfaces 'br-lan'
	option IgnoreSelected '0'

config statistics 'collectd_splash_leases'
	option enable '0'

config statistics 'collectd_tcpconns'
	option enable '0'
	option ListeningPorts '0'
	option LocalPorts '22 80'

config statistics 'collectd_uptime'
	option enable '0'

config collectd_network_server
	option host '192.168.1.1'
	option port '25826'

config statistics 'collectd_thermal'

config collectd_network_listen
	option host '172.31.1.1'
	option port '25826'


Another sending host that works fine is running identical software and hardware as the receiving model (not shown here for brevity, let me know if you want to see it).

The sending host that is not showing anything on the receiver's graph (but shows just fine on its own graphs) (172.31.1.41):

# ubus call system board
{
	"kernel": "6.6.25",
	"hostname": "XXX",
	"system": "ARMv8 Processor rev 4",
	"model": "Dynalink DL-WRX36",
	"board_name": "dynalink,dl-wrx36",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "SNAPSHOT",
		"revision": "r25829-e6f7e9dca9",
		"target": "qualcommax/ipq807x",
		"description": "OpenWrt SNAPSHOT r25829-e6f7e9dca9"
	}
}
# opkg list |egrep "statistics|collectd"
collectd - 5.12.0-r50
collectd-mod-cpu - 5.12.0-r50
collectd-mod-csv - 5.12.0-r50
collectd-mod-interface - 5.12.0-r50
collectd-mod-iwinfo - 5.12.0-r50
collectd-mod-load - 5.12.0-r50
collectd-mod-lua - 5.12.0-r50
collectd-mod-memory - 5.12.0-r50
collectd-mod-network - 5.12.0-r50
collectd-mod-ping - 5.12.0-r50
collectd-mod-rrdtool - 5.12.0-r50
collectd-mod-thermal - 5.12.0-r50
collectd-mod-write-graphite - 5.12.0-r50
luci-app-statistics - git-24.075.52231~38c1fa1
# cat /etc/config/luci_statistics

config statistics 'collectd'
	option BaseDir '/var/run/collectd'
	option PIDFile '/var/run/collectd.pid'
	option PluginDir '/usr/lib/collectd'
	option TypesDB '/usr/share/collectd/types.db'
	option Interval '30'
	option ReadThreads '2'
	option Include '/etc/collectd/conf.d/*.conf'

config statistics 'rrdtool'
	option default_timespan '2hour'
	option image_width '600'
	option image_height '150'
	option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
	option enable '1'
	option DataDir '/tmp/rrd'
	option RRARows '144'
	option RRASingle '1'
	option backup '1'
	list RRATimespans '5min'
	list RRATimespans '15min'
	list RRATimespans '1hour'
	list RRATimespans '2hours'
	list RRATimespans '6hours'
	list RRATimespans '1day'
	list RRATimespans '1week'
	list RRATimespans '1month'
	list RRATimespans '1year'

config statistics 'collectd_csv'
	option StoreRates '0'
	option DataDir '/tmp'

config statistics 'collectd_email'
	option enable '0'
	option SocketFile '/var/run/collectd/email.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_logfile'
	option enable '0'
	option LogLevel 'notice'
	option File '/var/log/collectd.log'
	option Timestamp '1'

config statistics 'collectd_network'
	option enable '1'

config statistics 'collectd_syslog'
	option enable '0'
	option LogLevel 'warning'
	option NotifyLevel 'WARNING'

config statistics 'collectd_unixsock'
	option enable '0'
	option SocketFile '/var/run/collectd/query.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_apcups'
	option enable '0'
	option Host 'localhost'
	option Port '3551'

config statistics 'collectd_chrony'
	option enable '0'
	option Host '127.0.0.1'
	option Port '323'
	option Timeout '2'

config statistics 'collectd_conntrack'
	option enable '0'

config statistics 'collectd_contextswitch'
	option enable '0'

config statistics 'collectd_cpu'
	option enable '1'
	option ReportByCpu '1'
	option ReportByState '1'
	option ShowIdle '0'
	option ValuesPercentage '1'

config statistics 'collectd_cpufreq'
	option enable '0'

config statistics 'collectd_curl'
	option enable '0'

config statistics 'collectd_df'
	option enable '0'
	option Devices '/dev/mtdblock/4'
	option MountPoints '/overlay'
	option FSTypes 'tmpfs'
	option IgnoreSelected '0'
	option ValuesPercentage '0'

config statistics 'collectd_dhcpleases'
	option enable '0'
	option Path '/tmp/dhcp.leases'

config statistics 'collectd_disk'
	option enable '0'
	option Disks 'hda1 hdb'
	option IgnoreSelected '0'

config statistics 'collectd_dns'
	option enable '0'
	option Interfaces 'br-lan'
	option IgnoreSources '127.0.0.1'

config statistics 'collectd_entropy'
	option enable '0'

config statistics 'collectd_exec'
	option enable '0'

config statistics 'collectd_interface'
	option enable '1'
	list Interfaces 'br-lan'
	list Interfaces 'wan'

config statistics 'collectd_ipstatistics'
	option enable '0'

config statistics 'collectd_iptables'
	option enable '0'

config collectd_iptables_match
	option table 'nat'
	option chain 'luci_fw_postrouting'
	option target 'MASQUERADE'
	option source '192.168.1.0/24'
	option outputif 'br-ff'
	option name 'LAN-Clients traffic'

config collectd_iptables_match
	option chain 'luci_fw_postrouting'
	option table 'nat'
	option target 'MASQUERADE'
	option source '10.61.230.0/24'
	option outputif 'br-ff'
	option name 'WLAN-Clients traffic'

config statistics 'collectd_irq'
	option enable '0'
	option Irqs '2 3 4 7'

config statistics 'collectd_iwinfo'
	option enable '1'

config statistics 'collectd_load'
	option enable '1'

config statistics 'collectd_memory'
	option enable '1'
	option HideFree '0'
	option ValuesAbsolute '1'
	option ValuesPercentage '0'

config statistics 'collectd_netlink'
	option enable '0'
	option IgnoreSelected '0'
	option VerboseInterfaces 'br-lan'
	option QDiscs 'br-lan'

config statistics 'collectd_nut'
	option enable '0'
	list UPS 'myupsname'

config statistics 'collectd_olsrd'
	option enable '0'
	option Port '2006'
	option Host '127.0.0.1'

config statistics 'collectd_openvpn'
	option enable '0'

config statistics 'collectd_ping'
	option TTL '127'
	option Interval '30'
	option enable '1'
	list Hosts 'redacted'
	list Hosts '127.0.0.1'
	option AddressFamily 'ipv4'
	option MaxMissed '7'

config statistics 'collectd_processes'
	option enable '0'
	option Processes 'uhttpd dnsmasq dropbear'

config statistics 'collectd_sensors'
	option enable '0'

config statistics 'collectd_snmp6'
	option enable '0'
	option Interfaces 'br-lan'
	option IgnoreSelected '0'

config statistics 'collectd_splash_leases'
	option enable '0'

config statistics 'collectd_tcpconns'
	option enable '0'
	option ListeningPorts '0'
	list LocalPorts '22'
	option AllPortsSummary '0'

config statistics 'collectd_thermal'
	option enable '1'
	option IgnoreSelected '1'
	list Device 'cooling_device0'
	list Device 'cooling_device1'
	list Device 'cooling_device2'

config statistics 'collectd_uptime'
	option enable '0'

config collectd_network_server
	option host '192.168.1.1'
	option port '25826'

config statistics 'collectd_mqtt'

config collectd_network_server
	option host '172.31.1.1'
	option port '25826'

Ugh, just figured it out. Time on the sending server was off by a day, even though it was set up for NTP client. Not sure why it's not setting time correctly via NTP, but after forcing a manual sync, all is good now.

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