Re: on CentOS 4.5 (usually), snmpd won't stay running
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/02/2008, Bennett Haselton <[email protected]> wrote: > On all of the CentOS 4.5 machines.... > ..... I then try to start the snmpd service, but > immediately after I start it with no error, the service isn't running any > more: > > [root@D2585 net-snmp-5.4.1]# service snmpd start > Starting snmpd: [ OK ] > [root@D2585 net-snmp-5.4.1]# ps auwx | grep snmp > root 27400 0.0 0.0 4832 632 pts/0 S+ 17:22 0:00 grep snmp It might be worth tweaking the service start script to turn on debugging output, in order to find out where the problem is occurring. Or you could try starting the agent using snmpd -f -Le and see what (if anything) it reports. > The only two lines that snmpd writes to /var/log/messages are these two, > indicating no error: > Feb 2 17:22:20 D2585 snmpd: snmpd startup succeeded > Feb 2 17:22:20 D2585 snmpd[27396]: NET-SNMP version 5.1.2 Hmmm... That's a fairly old version of the code (and that line isn't supported any more). I note that your prompts talk about "net-snmp-5.4.1" What happens if you use that code instead? > One person suggested running it under strace, which I did, and got this > output, of which I didn't understand a word, but you might: > http://www.peacefire.org/strace-snmpd-output.txt Hmmm... that's not a lot of use really, since it's tracing the initial run of the agent, which then forks off a child to act as the "real" SNMP agent. The underlying problem will lie with this child process, and the trace output doesn't provide any information about this. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users