I had plugin uptime installed previously and did a back-up/restore of the configuration after a firmware flash. In the new system, I dont want to install plugin uptime but the line "LoadPlugin uptime" still exists in /etc/collectd.conf from the restored backup.
I tried editing manually using vim both /etc and /var/etc/collectd.conf to delete the line and restart collectd and luci_statistics but no luck. The deleted line comes back.
I keep seeing this error logged in system logs - "daemon.err collectd: Error: Parsing the config file failed!" and I suspect the non-existant plugin is to blame.
I am unable to view any graphs due to this parsing error.
The actual resolution to not seeing graphs was resolved by these steps:
- install uptime or any missing plugin for which the config line exists
- uncheck disable the plugin under Luci -> Statistics ->Setup
- immediately remove the previously installed plugin
- Restart collectd and luci_statistics
These steps removed the parsing errors and graphs are now generated.
However my original question still remains - from where is the original configuration overwriting my edits? I thought /overlay was rw and replaced /var/etc/ but looks like there is another immutable source that overrides my edits in /etc.
When you use LuCI statistics, it overwrites the native collectd config each time it starts. LuCI statistics uci config gets transformed to collectd.conf
In a sense, LuCI statistics hijacks the underlying collectd.