mod-ntpd doesn't show up under the config options in the luci Statistics page, the other default modules work fine.
I've tried adding it to collectd.conf and via UCI but it gets removed from /etc/collectd.conf and doesn't shows up on the config page.
I assume this is because /usr/bin/stat-genconfig doesn't detect it correctly in uci?
Also, I don't think the test plugin features works:
root@apu:~# collectd -C /etc/collectd.conf -t
root@apu:~# collectd -C /etc/collectd.conf -T /usr/lib/collectd/ntpd.so
Usage: collectd [OPTIONS]
Available options:
General:
-C <file> Configuration file.
Default: /etc/collectd.conf
-t Test config and exit.
-T Test plugin read and exit.
Builtin defaults:
Config file /etc/collectd.conf
PID file /var/run/collectd.pid
Plugin directory /usr/lib/collectd
Data directory /var/lib/collectd
collectd 5.8.1.git, http://collectd.org/
My config:
# cat /etc/collectd.conf
BaseDir "/var/run/collectd"
Include "/etc/collectd/conf.d"
PIDFile "/var/run/collectd.pid"
PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db"
Interval 30
ReadThreads 2
LoadPlugin memory
LoadPlugin cpu
LoadPlugin load
LoadPlugin rrdtool
<Plugin rrdtool>
DataDir "/tmp/rrd"
RRARows 100
RRASingle true
RRATimespan 3600
RRATimespan 86400
RRATimespan 604800
RRATimespan 2678400
RRATimespan 31622400
</Plugin>
LoadPlugin interface
<Plugin interface>
IgnoreSelected false
Interface eth1
Interface secnd
Interface "pppoe-wan"
Interface vpn
Interface "6in4-wan6"
</Plugin>
# uci show | grep collectd_ntpd
luci_statistics.collectd_ntpd=statistics
luci_statistics.collectd_ntpd.enable='1'
luci_statistics-opkg.collectd_ntpd=statistics
luci_statistics-opkg.collectd_ntpd.enable='1'
Full uci config - https://paste.ubuntu.com/p/sHZnnMQB9r/