Nethserver-collectd fails to start: python plugin error

v7
statistics

(Christopher Suttles) #1

NethServer Version: 7.5.1804
Module: nethserver-collectd 5.8.0

Issue: collectd no longer runs

Expected: collectd to run

Tried: Restarting server. Uninstalling and reinstalling nethserver-collectd. After the reinstall, the “Graphs” section disappeared in the server-manager. (most likely due to collectd not even starting.)

Log:

May 29 03:37:19 server.triggeredstudios.com collectd[17603]: python plugin: Error importing module 
"nethserver_alerts".
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: Unhandled python exception in 
importing module: ImportError: No module named nethserver_alerts
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: python plugin: Found a configuration 
for the "nethserver_alerts" plugin, but the plugin isn't loaded or didn't register a configuration callback.
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: plugin_load: plugin "threshold" 
successfully loaded.
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: Error: Reading the config file failed!
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: Read the logs for details.
May 29 03:37:19 server.triggeredstudios.com collectd[17603]: plugin_load: plugin "unixsock" 
successfully loaded.
May 29 03:37:19 server.triggeredstudios.com systemd[1]: collectd.service: main process exited, 
code=exited, status=1/FAILURE
May 29 03:37:19 server.triggeredstudios.com systemd[1]: Failed to start Collectd statistics daemon.
May 29 03:37:19 server.triggeredstudios.com systemd[1]: Unit collectd.service entered failed state.
May 29 03:37:19 server.triggeredstudios.com systemd[1]: collectd.service failed.

(Christopher Suttles) #2

Well, installing nethserver-collectd didn’t install nethserver-statistics, which is a requirement for the package.

After installing that, collectd is running again. Jumped the gun on this one I guess. Time to sleep.