Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 23476 - ucd-snmp does not log to syslog
ucd-snmp does not log to syslog
Product: Red Hat Linux
Classification: Retired
Component: ucd-snmp (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2001-01-06 04:22 EST by Joerg Dorchain
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-06 04:28:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joerg Dorchain 2001-01-06 04:22:13 EST
snmpd does not use the syslog, but instead uses a log file of its own,
Whilst the endles growing of this file was dealt with int bug #21399, my
original interest of bug #23403 was to have it log via syslog (which give
far more flexibility, e.g. remote logging)
Therefor I attach again a patch for the starting snmpd with some options,
this time with an explanation of every single option used.

-s means log to syslog (desried effect)
-l /dev/null is here to make snmpd stop using a file which grows without
end. (it would be          better to add an option not to use file logging
at all, but I didn#t want to play with the source    ;-)
-P /var/run/snmpd makes snmpd created a pid file. This assists the
/etc/init.d functions in          killing the right process and is IMHO the
correct behaviour for a daemon.
-a makes snmpd log addresses, too.

Sorry to bug you again, but I felt misunderstood the first time.
Comment 1 Joerg Dorchain 2001-01-06 04:28:52 EST
--- snmpd.redhat        Fri Jan  5 12:16:36 2001
+++ snmpd       Fri Jan  5 12:17:06 2001
@@ -14,12 +14,14 @@
 # source function library
 . /etc/rc.d/init.d/functions
+OPTIONS="-s -l /dev/null -P /var/run/snmpd -a"
 case "$1" in
        echo -n "Starting snmpd: "
-        daemon /usr/sbin/snmpd
+        daemon /usr/sbin/snmpd $OPTIONS
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd

Comment 2 Jeff Johnson 2001-01-06 04:37:01 EST
Thanks for the clarification. Added in ucd-snmp-4.2-3.

Note You need to log in before you can comment on or make changes to this bug.