Ad Widget

Collapse

Not receiving snmptraps to ZABBIX

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

    #1

    Not receiving snmptraps to ZABBIX

    Hi, I'm trying to configure Zabbix to receive traps. I see snmptrapd port receiving traps. but, not writing to /tmp/zabbix_traps.tmp


    1. snmpd and snmptrapd service is running

    3. zabbix_trap_receiver.pl has execute permissions.

    4. SNMPTrapperFile in snmpd.conf is same as zabbix_trap_receiver.pl


    when I send traps I can see it server receiving through tcpdump but not in zabbix_traps.tmp file


    snmptrapd is running. but I see the below error message

    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal snmptrapd[18970]: embedded perl support failed to initialize (perl_parse(/usr/share/snm...ed 2)

    [root@ip-10-1-1-75 perl]# 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; enabled; vendor preset: disabled)
    Active: active (running) since Wed 2020-03-25 17:30:30 UTC; 2min 31s ago
    Main PID: 18970 (snmptrapd)
    CGroup: /system.slice/snmptrapd.service
    └─18970 /usr/sbin/snmptrapd -Lsd -f

    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal snmptrapd[18970]: Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such ...ctory
    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal snmptrapd[18970]: embedded perl support failed to initialize (perl_parse(/usr/share/snm...ed 2)
    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal snmptrapd[18970]: NET-SNMP version 5.7.2
    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon..
    Hint: Some lines were ellipsized, use -l to show in full.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Well, this error message is pretty clear:

    Mar 25 17:30:30 ip-10-1-1-75.ec2.internal snmptrapd[18970]: Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such ...ctory
    You need to configure the "perl do" line in snmptrapd.conf to point to the correct script. See the documentation for snmptrapd.conf

    Comment

    Working...