#852658 collectd-core: Won't start without non-required packages libsensors4 liboping0

Package:
collectd-core
Source:
collectd
Description:
statistics collection and monitoring daemon (core system)
Submitter:
Jan Huijsmans
Date:
2017-10-21 11:51:03 UTC
Severity:
important
#852658#5
Date:
2017-01-26 08:05:06 UTC
From:
To:
Dear Maintainer,

Installation of collectd fails on the start of the package.
The package misses files from libsensors4 liboping0, but these
packages are only recommended or even suggested.

Manual installation of libsensors4 liboping0 solved the issue.

When a package won't complete it's installation without a
package, it should be a requirement, not anything less.

Probably an issue with the debian packages as well.

#852658#10
Date:
2017-01-28 10:35:03 UTC
From:
To:
plugins by default:

marc@lonquimay:~/src/pkg-collectd/debian$ grep ^LoadPlugin collectd.conf
LoadPlugin syslog
LoadPlugin battery
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin users

None of them depend on libsensors4 or liboping0 (the sensors and ping
plugins do, but they aren't enabled by default).

So my guess is that this system previously had a non-default configuration
(maybe some config snippets in /etc/collectd/collectd.conf.d/ ?) in place,
and installing/upgrading collectd-core made the missing runtime
dependencies strike out.

Are you able to confirm ?

NB: I agree such a failure is undesirable. The collectd plugin loading
mechanism could maybe be changed to not abort startup in this case (just
skip loading the plugin and emit an error message).

Are you aware of /usr/share/doc/collectd-core/README.Debian.plugins.gz ?

Cheers,
Marc

#852658#17
Date:
2017-10-21 11:39:50 UTC
From:
To:
Hi,

That's my guess as well.

I think I disagree. Daemon startup should imho fail so that people
actually notice. Else, you'll be left with a running daemon that does
not behave as expected / configured.

That said, I'd be happy if we could improve the overall situation. It
keeps coming up but I don't have a good idea for how to solve it yet :-/

Cheers,
Sebastian