When we do "snmpd status", it always return 0 inspite of snmpd not running. This is a bug in /etc/rc.d/init.d/snmpd startup script. In the script, "RETVAL" environment variable is not properly set for status. Basically, status() returns 3 in this case, but then 0 is returned from the script. RETVAL needs to get set after calling status(). Because of this, dellomsa cannot check the correct status of snmpd and it will not start snmpd if it not already started. Patch to /etc/rc.d/init.d/snmpd is here. As this is a trivial yet functionally necessary change, Dell would like to see this addressed. --- snmpd.orig Tue Mar 27 21:44:11 2001 +++ snmpd Tue Mar 27 22:18:43 2001 @@ -68,6 +68,7 @@ ;; status) status snmpd + RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
ucd-snmp-4.2-10