Package: snmpd
Version: 5.1.2-6.2
Severity: wishlist
Tags: patch

*** Please type your report below this line ***

Hi

In my network I restart all snmpd daemons every night for certain
reasons. In some occasions snmpd does not restart properly, failing to
report some values. This can be fixed by restarting the snmpd by hand,
but it is annoying.

Although not documented smnpd seems to reload its config (tracked with
strace on my sarge machine). The command

start-stop-daemon --stop --signal 1 --quiet 
--pidfile /var/run/snmpd.pid --exec /usr/sbin/snmpd 

will make snmpd reload its configs.

Up to now reload is mapped to restart in the init script. It would be
nice if this could be changed to a separate reload task.

A patch to the init script version in unstable could be

43c43
<   reload|force-reload)
---
>   restart|reload|force-reload)
61,65d60
<   restart)
<     echo -n "Reloading network management services:"
<     start-stop-daemon --stop --signal 1 --quiet 
--pidfile /var/run/snmpd.pid \
<     --exec /usr/sbin/snmpd
<     ;;



Thanks Hendrik

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-3-686
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 
(charmap=ISO-8859-15)

Versions of packages snmpd depends on:
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared 
libraries an
ii  libsensors3           1:2.9.1-1sarge3    library to read 
temperature/voltag
ii  libsnmp5              5.1.2-6.2          NET SNMP (Simple Network 
Managemen
ii  libwrap0              7.6.dbs-8          Wietse Venema's TCP 
wrappers libra

-- no debconf information

-- 
PGP ID 65C92061

Attachment: pgpongVNB0WnF.pgp
Description: PGP signature

Reply via email to