openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
3.95k stars 3.46k forks source link

collectd-mod-wireless: "Configuration definition file for wireless not found" #20950

Open zsrv opened 1 year ago

zsrv commented 1 year ago

Maintainer: @jow- @hnyman Environment: Generic x86/64, OpenWrt 22.03.5 r20134-5f15225c1e

Description:

The wireless plugin installed by package collectd-mod-wireless fails to start, with this error appearing in logread:

Sun May  7 22:04:10 2023 user.notice collectd[21597]: Configuration definition file for wireless not found

I was able to solve this by creating /usr/share/collectd/plugin/wireless.json (which was missing) with an empty JSON object inside, but I don't know if there are actually any configuration options available for this package:

{
}

For what it's worth: I actually noticed that collectd-mod-iwinfo returns similar information for me, so I uninstalled this plugin.

hnyman commented 1 year ago

LuCI statistics loads the OpenWrt-specific iwinfo plugin by default.

(the "wireless" plugin is unused by OpenWrt, similarly as lots of other collectd plugins that are offered along the other collectd plugins.)

zsrv commented 1 year ago

Oh, okay. I installed the collectd packages manually and without LuCI statistics (I configured collectd to send everything to a Prometheus collectd_exporter instance I'm running elsewhere), so I went through the entire list of collectd plugins packaged for OpenWrt and picked the ones I liked.