[Bug 241611] New: incorrect snmptrapd initscript
https://bugzilla.novell.com/show_bug.cgi?id=241611 Summary: incorrect snmptrapd initscript Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rich@hq.vsaa.lv QAContact: qa@suse.de actually, a sles 10 problem. snmptrapd init script, located in /usr/share/doc/packages/net-snmp, has slightly incorrect snmptrapd start command : startproc $SNMPTRAPD -c /etc/snmptrapd.conf -Lf /var/log/net-snmpd.log there are two problems with this : 1. config file actually resides in /etc/snmp/ 2. if the config file path is correct, this leads to another problem - the file is read twice, because snmptrapd by default reads the configuration file and it can read several files (and it can read the same file twice). this leads to, for example, scripts being executed twice and so on. there are two simple solutions (unless snmptrapd behaviour is modified) : a) add -C switch; b) remove "-c /etc/snmptrapd.conf" note that file header says : # Copyright (c) 1996-2002 SuSE GmbH Nuernberg, Germany. All rights reserved. # # Author: Christopher Mahmood <ckm@suse.de>, 2002 additionally, would be nice to have the file by default available in /etc/init.d, as snmpd init script is available - but i won't open a new enhancement report regarding this unless requested. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=241611 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mrueckert@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=241611 mrueckert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kcoombs@novell.com ------- Comment #3 from mrueckert@novell.com 2007-02-22 11:08 MST ------- *** Bug 209457 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=241611#c5 Marcus Rückert <mrueckert@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Marcus Rückert <mrueckert@novell.com> 2007-11-22 18:09:55 MST --- the script wont be installed by default for now. patch has been applied -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=241611 User frank_migge@manulife.com added comment https://bugzilla.novell.com/show_bug.cgi?id=241611#c6 Frank Migge <frank_migge@manulife.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frank_migge@manulife.com --- Comment #6 from Frank Migge <frank_migge@manulife.com> 2008-10-07 23:07:52 MDT --- I was wondering if this could be addressed in a better way. Both OpenSuse 10.3 and SLES10 SP2 have the issue. It would really help us who use the snmptrapd. Although it is quite easy to adjust the path, just the fact we need to investigate why there is no startup scrip, wastes time and is inconsistent. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=241611 User rich@hq.vsaa.lv added comment https://bugzilla.novell.com/show_bug.cgi?id=241611#c7 --- Comment #7 from Rihards Olups <rich@hq.vsaa.lv> 2008-11-03 02:01:29 MDT --- well, my hope with the report was that this initscript would be fixed and brought in /etc/init.d - i mean, the script is there, needs only minor fixes and would provide a way to nicely start/stop snmptrapd. now users are forced to either write their own, or resurrect & fix this one... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=241611 User mrueckert@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=241611#c8 --- Comment #8 from Marcus Rückert <mrueckert@novell.com> 2008-11-03 05:21:59 MDT --- 1. the fix has been backported to all active distributions and will be released as part of the next security update. 2. [[[ $ cp /usr/share/doc/packages/net-snmp/*snmptrap* /etc/init.d/snmptrapd $ chkconfig snmptrapd on ]]] doesnt seems to be this hard. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=241611 User rich@hq.vsaa.lv added comment https://bugzilla.novell.com/show_bug.cgi?id=241611#c9 --- Comment #9 from Rihards Olups <rich@hq.vsaa.lv> 2008-11-03 05:44:19 MDT --- 1. thanks, this was not completely clear from messages on this report; 2. as mentioned, previously the file also had to be additionally edited, which, as far as i understand, has been now fixed. at least for me, message "the script wont be installed by default for now. patch has been applied" read as "this script has been removed and patch removing it has been applied" ;) will this script go into /etc/init.d for further releases ? -- 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.
participants (1)
-
bugzilla_noreply@novell.com