Ad Widget

Collapse

Need help setting up zabbix as trap receiver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tjernigan
    Junior Member
    • Apr 2024
    • 1

    #1

    Need help setting up zabbix as trap receiver

    I have been following the instructions as laid out in this walkthrough https://reasonableitservice.com/setu...n-zabbix-v6-4/


    But I'm stuck. I can't get snmptrapd running. I have a fresh install of ubuntu and zabbix setup. I don't even have any hosts yet. When I attempt to start snmptrapd I get this error
    not sure how to resolve it

    Loaded: loaded (/lib/systemd/system/snmptrapd.service; static)
    Active: failed (Result: exit-code) since Fri 2024-04-26 16:51:47 UTC; 7s ago
    TriggeredBy: ● snmptrapd.socket
    Process: 2714 ExecStart=/usr/sbin/snmptrapd -LOw -f udp:162 udp6:162 (code=exited, status=255/EXCEPTION)
    Main PID: 2714 (code=exited, status=255/EXCEPTION)
    CPU: 32ms

    Apr 26 16:51:47 Zabbix systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
    Apr 26 16:51:47 Zabbix snmptrapd[2714]: Unrecognized character \xE2; marked by <-- HERE after do <-- HERE near column 4 at (eval 6) line 1.
    Apr 26 16:51:47 Zabbix systemd[1]: snmptrapd.service: Main process exited, code=exited, status=255/EXCEPTION
    Apr 26 16:51:47 Zabbix systemd[1]: snmptrapd.service: Failed with result 'exit-code'.
    Apr 26 16:51:47 Zabbix systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by tjernigan
    Apr 26 16:51:47 Zabbix snmptrapd[2714]: Unrecognized character \xE2; marked by <-- HERE after do <-- HERE near column 4 at (eval 6) line 1.
    You have an invalid character (it's hex byte E2) in your snmptrapd.conf or other SNMP configuration file that you edited. The invalid character is somewhere after the word "do " in the file.

    Did you edit snmptrapd.conf with a Windows editor? Did you cut-and-paste from a web page? Have you made any changes to your locale-related settings (like LANG) on that system?

    Somehow you managed to get garbage text into the config file, but it's not clear how that would happen under normal circumstances.

    Comment

    Working...