Ad Widget

Collapse

snmptrapd not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gurlinks
    Junior Member
    • Mar 2020
    • 11

    #1

    snmptrapd not running

    Hi,

    I want to configure zabbix to receive snmptraps. getting the below error while starting snmptrapd.


    [root@ip-10-1-1-228 tmp]#
    [root@ip-10-1-1-228 tmp]# cat /etc/system-release
    Amazon Linux release 2 (Karoo)
    [root@ip-10-1-1-228 tmp]#
    [root@ip-10-1-1-228 tmp]# service snmptrapd start
    Redirecting to /bin/systemctl start snmptrapd.service
    Job for snmptrapd.service failed because the control process exited with error code. See "systemctl status snmptrapd.service" and "journalctl -xe" for details.
    [root@ip-10-1-1-228 tmp]#
    [root@ip-10-1-1-228 tmp]# service snmptrapd status
    Redirecting to /bin/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: exit-code) since Wed 2020-03-18 22:03:28 UTC; 3s ago
    Process: 19629 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=127)
    Main PID: 19629 (code=exited, status=127)

    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal snmptrapd[19629]: /usr/sbin/snmptrapd: relocation error: /lib64/libnetsnmptrapd.so.3...rence
    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal systemd[1]: Unit snmptrapd.service entered failed state.
    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal systemd[1]: snmptrapd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@ip-10-1-1-228 tmp]#
    [root@ip-10-1-1-228 tmp]#

    And snmpd service is running

    [root@ip-10-1-1-228 tmp]# service snmpd status
    Redirecting to /bin/systemctl status snmpd.service
    ● snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
    Loaded: loaded (/usr/lib/systemd/system/snmpd.service; disabled; vendor preset: disabled)
    Active: active (running) since Wed 2020-03-18 21:55:37 UTC; 8min ago
    Main PID: 19535 (snmpd)
    CGroup: /system.slice/snmpd.service
    └─19535 /usr/sbin/snmpd -LS0-6d -f

    Mar 18 21:55:37 ip-10-1-1-228.ec2.internal systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
    Mar 18 21:55:37 ip-10-1-1-228.ec2.internal snmpd[19535]: NET-SNMP version 5.7.2
    Mar 18 21:55:37 ip-10-1-1-228.ec2.internal systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
    [root@ip-10-1-1-228 tmp]#

    --
    Thanks
    Vikas Gurlinka
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    This isn't anything specific to Zabbix, there's something wrong with the install of snmptrapd itself. The partial error message it's giving you is

    Mar 18 22:03:28 ip-10-1-1-228.ec2.internal snmptrapd[19629]: /usr/sbin/snmptrapd: relocation error: /lib64/libnetsnmptrapd.so.3...rence
    Also, notice this "hint" from systemd:

    Hint: Some lines were ellipsized, use -l to show in full.
    You should run
    Code:
    systemctl status -l snmptrapd.service
    and then find the full error message in that output and do some web searching for whether others have reported the same relocation error with libnetsnmptrapd on Amazon Linux, and if there's a fix for it.

    Comment

    Working...