snmpd init status script doesn't check $SNMPDRUN or $SNMPDRUN

Bug #886426 reported by William Van Hevelingen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
net-snmp (Debian)
Fix Released
Unknown
net-snmp (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The init script for snmpd should check the $SNMPDRUN and $TRAPDRUN variables before returning the status

Example:
------------

SNMPDRUN=yes
TRAPDRUN=no

root@hydralisk:~# service snmpd status
 * snmpd is running
 * snmptrapd is not running

snmptrapd should not return status if TRAPDRUN=no and vice versa

Changed in net-snmp (Ubuntu):
importance: Undecided → Low
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to submit this bug report.

While I can see your suggestion making sense, I don't know of any other init jobs which behave that way. I will certainly leave the bug open in case a maintainer sees it differently.

Revision history for this message
William Van Hevelingen (blkperl) wrote :

Hi Serge,

I reported this bug because the behavior confuses Puppet. Puppet will continually try to start the service because it sees that snmtrapd is not running. I do not consider this a bug in puppet but rather in the init script.

Thanks for leaving the ticket open. :)

Cheers,
William

Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed in pangolin. If you are still having problems please re-open this bug.

Regards
chuck

Changed in net-snmp (Ubuntu):
status: New → Fix Released
Revision history for this message
Andreas Schiermeier (aschiermeier-trustinternational) wrote :

This bug is fixed in Debian. Is it possible to port the fix to lucid?

description: updated
Changed in net-snmp (Debian):
status: Unknown → Fix Released
Revision history for this message
Andreas Schiermeier (aschiermeier-trustinternational) wrote :

Patch fixes /etc/init.d/snmpd in Ubuntu 10.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.