Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768132 - net-analyzer/net-snmp snmpd requires dbus to start
Summary: net-analyzer/net-snmp snmpd requires dbus to start
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-01 03:21 UTC by dan
Modified: 2021-02-05 19:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2021-02-01 03:21:15 UTC
I can't say if this is an issue with Systemd, but in OpenRC systems init tries to start snmpd before it starts dbus. snmpd promptly informs you that it requires dbus to be running, and then quits.

I was able the fix this on my system by added dbus and network to the use line of the init script. dbus, obviously, because snmpd specifically says it needs it, and network because what's the point of having a "simple network monitoring protocol" (the definition of SNMP) if you don't have a NETWORK to monitor?

After I did that and rebooted, snmpd no longer complains that it needs dbus when it tries to start. Note that while this doesn't seem to be an issue for snmptrapd, I also added those changes to the snmptrapd init script, just in case.
Comment 1 Ionen Wolkens gentoo-dev 2021-02-05 19:55:12 UTC
This sounds kind of curious considering net-snmp itself doesn't use dbus at all looking at its code (not that I know this inside-out).

Source of the issue may be elsewhere (I can start snmpd without dbus running at all, but that's just my configuration), seeing the exact logs of the messages you're getting could give pointers.

If unsure, may be better taken to support channels where it's easier to discuss:
https://www.gentoo.org/support/