Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

(no subject)

  • Bill Fenner
    Bill Fenner
    2013-12-11

    Oops. I didn't read deeply enough.

    Try adding these two format lines:

    format1 %a: %W Trap (%q) Uptime: %#T%#v\n
    format2 %B [%b]: Trap %#v\n
    

    to your snmptrapd.conf. It turns out that these are the format strings defined for syslog, but the syslog handler is only used if you have no logging options; otherwise the "print to net-snmp log" is used, which uses the format that you see.