Unable to start snmptrapd.service after some configuration changes

Solution In Progress - Updated -

Issue

  • The snmptrapd.service cannot be started after some configuration changes.
  • The snmptrapd process seems to be running after "systemctl start snmptrapd.service" command but it has been terminted soon.
# systemctl start snmptrapd
Job for snmptrapd.service failed because a timeout was exceeded. See "systemctl status snmptrapd.service" and "journalctl -xe" for details.
# systemctl status snmptrapd.service
* snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
   Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Tue 2019-03-19 18:35:51 JST; 10s ago
  Process: 27168 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=0/SUCCESS)

Mar 19 18:34:21 rhel7snmp.example.com systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Mar 19 18:34:21 rhel7snmp.example.com snmptrapd[27168]: NET-SNMP version 5.7.2
Mar 19 18:35:51 rhel7snmp.example.com systemd[1]: snmptrapd.service start operation timed out. Terminating.
Mar 19 18:35:51 rhel7snmp.example.com systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Mar 19 18:35:51 rhel7snmp.example.com systemd[1]: Unit snmptrapd.service entered failed state.
Mar 19 18:35:51 rhel7snmp.example.com systemd[1]: snmptrapd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
#

Environment

  • Red Hat Enterprise Linux 7
  • net-snmp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content