freifunk-berlin / bbb-configs

Ansible based configuration management openwrt mesh nodes in the city-wide backbone of Freifunk Berlin
GNU Affero General Public License v3.0
14 stars 24 forks source link

Gateway doesnt provide statistics #966

Closed spolack closed 2 months ago

spolack commented 2 months ago

After flashing saarbruecker-gw with current HEAD it is no longer showing statistics. Screenshot 2024-09-12 at 22-12-18 Freifunk Berlin - CGP - Saarbruecker-gw - Load

Quick investigation:

collectd is not running

root@saarbruecker-gw:~# ps w | grep collectd
24433 root      1632 S    grep collectd

..fails to start

root@saarbruecker-gw:~# collectd -C /tmp/collectd.conf 
plugin_load: plugin "load" successfully loaded.
plugin_load: plugin "uptime" successfully loaded.
plugin_load: plugin "interface" successfully loaded.
plugin_load: plugin "ping" successfully loaded.
plugin_load: plugin "memory" successfully loaded.
plugin_load: plugin "network" successfully loaded.
plugin_load: plugin "olsrd" successfully loaded.
plugin_load: plugin "conntrack" successfully loaded.
plugin_load: Could not find plugin "snmp" in /usr/lib/collectd
There is configuration for the `snmp' plugin, but the plugin isn't loaded. Please check your configuration.
Error: Parsing the config file failed!

... snmp mod is not installed

root@saarbruecker-gw:~# opkg list-installed | grep collectd
collectd - 5.12.0-49
collectd-mod-conntrack - 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-memory - 5.12.0-49
collectd-mod-network - 5.12.0-49
collectd-mod-olsrd - 5.12.0-49
collectd-mod-ping - 5.12.0-49
collectd-mod-snmp6 - 5.12.0-49
collectd-mod-uptime - 5.12.0-49
spolack commented 2 months ago

I fixed it for now by installing collectd-mod-snmp. But it still needs fixing in git.