Mailinglist Archive: opensuse-bugs (4046 mails)

< Previous Next >
[Bug 712174] New: incorrect logging option in snmptrapd initiscript
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sat, 13 Aug 2011 09:59:59 +0000
  • Message-id: <bug-712174-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=712174

https://bugzilla.novell.com/show_bug.cgi?id=712174#c0


Summary: incorrect logging option in snmptrapd initiscript
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: richlv@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.9.168
Version/11.50

/usr/share/doc/packages/net-snmp/rc.snmptrapd uses the following to specify
logging :
-Lf ${SNMPD_LOGLEVEL:-d}

/etc/sysconfig/net-snmp specifies default SNMPD_LOGLEVEL as "n". this results
in snmptrapd logging in a file "/n" (it also creates a device file at
/var/log/net-snmp.log).

as per 'man snmpcmd', "-Lf FILE Log messages to the specified file."
"There are also "upper case" versions of each of these options, which allow
the corresponding logging mechanism to be restricted to certain priorities of
message."

thus the solution is to change "-Lf" in
/usr/share/doc/packages/net-snmp/rc.snmptrapd to -LF

/etc/init.d/snmpd is already using the correct version.

same problem also with opensuse 11.3, if anybody wants to fix it there as well

Reproducible: Always

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >