[Pkg-net-snmp-devel] Bug#668545: snmptrapd disabled causes init script status to exit 3

Ignace Mouzannar ignace.mouzannar at enovance.com
Thu Apr 12 16:29:57 UTC 2012

Package: snmpd
Version: 5.4.3~dfsg-2
Severity: important
Tags: patch


The status function of the init script does not test if the daemons are
enabled. In my configuration snmptrapd is disabled
in /etc/default/snmpd.

Which means that in my setup, snmptrapd not running should be normal;
however the init status exits with exit code 3:
~# /etc/init.d/snmpd status
snmpd is running.
snmptrapd is not running ... failed!
~# echo $?

This makes it impossible for applications relying on the init status
exit code to function correctly (e.g. puppet).

I have attached a patch that tests the /etc/default/snmpd values in the
status function; in my case:
~# /etc/init.d/snmpd status
snmpd is running.
~# echo $?

Hope this helps.

 Ignace M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmpd.init.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20120412/abad7857/attachment.bin>

More information about the Pkg-net-snmp-devel mailing list