Menu

#2736 /usr/share/snmp/snmptrapd.conf: line 17: Error: Blank line following format2 token.

debian
pending
nobody
None
5
2018-03-23
2016-07-27
No

Ubuntu 16.04 4.4.0-31
git sources 9b4215b26e8c468e8e89a23fe0fd10987ba587db from git://git.code.sf.net/p/net-snmp/code

Installing the package built from those sources & starting snmptrapd.service leads to:
● snmptrapd.service - Simple Network Management Protocol (SNMP) Trap daemon.
Loaded: loaded (/lib/systemd/system/snmptrapd.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2016-07-27 05:25:27 CEST; 23ms ago
Main PID: 18626 (snmptrapd)
Tasks: 1
Memory: 1.3M
CPU: 20ms
CGroup: /system.slice/snmptrapd.service
└─18626 /usr/sbin/snmptrapd -f

Jul 27 05:25:27 samsung-ubuntu systemd[1]: Started Simple Network Management Protocol (SNMP) Trap daemon..
Jul 27 05:25:27 samsung-ubuntu snmptrapd[18626]: /usr/share/snmp/snmptrapd.conf: line 17: Error: Blank line following format2 token.
Jul 27 05:25:27 samsung-ubuntu snmptrapd[18626]: net-snmp: 1 error(s) in config file(s)

The file snmptrapd.conf has not been modified.
Also, snmpd starts correctly:
● snmpd.service - Simple Network Management Protocol (SNMP) daemon.
Loaded: loaded (/lib/systemd/system/snmpd.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2016-07-27 05:25:27 CEST; 23ms ago
Main PID: 18617 (snmpd)
Tasks: 1
Memory: 3.2M
CPU: 18ms
CGroup: /system.slice/snmpd.service
└─18617 /usr/sbin/snmpd -f

Discussion

  • Bill Fenner

    Bill Fenner - 2018-03-23
    • status: open --> pending
     
  • Bill Fenner

    Bill Fenner - 2018-03-23

    Building the package from these sources does not install an snmptrapd.conf.

    git checkout 9b4215b26e8c468e8e89a23fe0fd10987ba587db
    ./configure --prefix=/home/fenner/src/net-snmp-bug-2736 --with-defaults --disable-embedded-perl --without-perl-modules
    make
    make install
    find /home/fenner/src/net-snmp-bug-2736 -name snmptrapd.conf
    -> no output

    Where did your snmptrapd.conf come from?

     

Log in to post a comment.