Installing net-snmp

Hi All,

I’m trying to install net-snmp (zypper in net-snmp) and it installs fine, but doesn’t seem to be creating an snmpd.service file.

If I try to start it with systemd:

server1:~ # service snmpd start
snmpd is neither service nor target!?

If I try to start it with the init script:

server1:~ # /etc/init.d/snmpd start
redirecting to systemctl start snmpd.service
Failed to start snmpd.service: Unit snmpd.service failed to load: No such file or directory.

Is snmpd.service something I need to manually create?

The package looks faulty.

Recommend you submit a bug report to https://bugzilla.opensuse.org.

In the meantime,
It looks like you can manually start snmpd with the following command

/usr/sbin/snmpd

You can also retrieve all the other related binary files in the package with the following command and invoke as necessary

rpm -ql net-snmpd

HTH,
TSU

Looking at what the package “net-snmp” provides, it’s a SysV-Init application:sysvinit(net-snmp)
sysvinit(snmp)
sysvinit(snmpd)
sysvinit(snmptrapd)

You may need to take a look at the “systemd-sysv-generator” (man 8).

Hey guys, thanks for the help! It looks like there’s already a couple bugs filed about adding systemd support, so I won’t clutter it up with any more.

I’ll probably just manually start it for now since these are pretty low impact servers.