Ad Widget

Collapse

snmptrapd is n't running when zabbix_trap_receiver.pl is included in snmptrapd.conf

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

    #1

    snmptrapd is n't running when zabbix_trap_receiver.pl is included in snmptrapd.conf

    HTML Code:
    Hi,  snmptrapd service is stopped when I include the below lines in snmptrapd.conf file. 
    
    
    
    authCommunity execute SGPL
    perl do "/usr/bin/zabbix_trap_receiver.pl”;
    
    
    [root@ip-10-1-1-205 zabbix-4.4.6]# service snmptrapd status -l
    Redirecting to /bin/systemctl status  -l 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 Fri 2020-04-03 04:12:47 UTC; 2min 35s ago
      Process: 22696 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=255)
     Main PID: 22696 (code=exited, status=255)
    
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal snmptrapd[22696]: Can't find string terminator '"' anywhere before EOF at (eval 2) line 1.
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal systemd[1]: snmptrapd.service: main process exited, code=exited, status=255/n/a
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal systemd[1]: Unit snmptrapd.service entered failed state.
    Apr 03 04:12:47 ip-10-1-1-205.ec2.internal systemd[1]: snmptrapd.service failed.
    [root@ip-10-1-1-205 zabbix-4.4.6]#
    [root@ip-10-1-1-205 zabbix-4.4.6]#
  • Ed.M
    Member
    • Mar 2020
    • 42

    #2
    Hi! I guess you have wrong closing quotes after the script name. snmptrad tells you that it can't find sting terminator " - you opened script name with normal quotes, and it couldn't find closing quotes of that type. Please check it!

    Comment


    • gurlinks
      gurlinks commented
      Editing a comment
      Thanks ,

      It worked
Working...