lsof -p 2796 output should contain all the information you need.
If you can't locate the start/stop script, kill 2796 (no, not
-9) will probably do it as well.
# lsof -p 2796 (please see attached)
# kill 2796
# /usr/local/sbin/snmpd -f -Le udp:161
NET-SNMP version 5.4.1
Received TERM or
Sorry for the late reply Dave - I have been sick for a while.
Hmmm
What happens if you specify an explicit socket to listen on?
I.e.
/usr/local/sbin/snmpd -f -Le udp:161
# /usr/local/sbin/snmpd -f -Le udp:161
Error opening specified endpoint udp:161
Server Exiting with code 1
Yep. We only offer binaries for FC6, not FC7, though, so you'd need to
build from source.
If you prefer binary packages instead, you could:
- install a 5.4.x SVN snapshot package for FC7 (see
http://www.net-snmp.org/wiki/index.php/Third-Party_Packages -- let us
know how it works for you)
# snmpd -f -Le
netsnmp_assert !registration != duplicate failed
agent_registry.c:535
netsnmp_subtree_load()
It might be worth applying Official Patch 1805971
(from the project web site), to handle these messages.
Applied patch to agent_registry.c.
Looks good.
Check out patch 1659623 which got applied in SVN Rev. 15942:
http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/branches/V5-4-
patches/net-
snmp/agent/mibgroup/smux/smux.c?r1=15942r2=15941view=patchpathrev=159
42
Sorry Thomas, I am a bit of a newbie in snmpd.
So, do you suggest that
Now try with each of the two lines individually.
One should start up cleanly.
The other should fall over with Segmentation fault
a)
vi /etc/snmp/snmpd.conf
smuxpeer .1.3.6.1.4.1.674.10892.1
# trapsink 172.28.18.142 compuware
# snmpd -f -Le
Segmentation fault
b)
vi /etc/snmp/snmpd.conf
#
--
So it's falling over when parsing the file /etc/snmp/snmpd.conf.
somewhere between line 459:
smuxpeer .1.3.6.1.4.1.674.10892.1
and line 460:
trapsink 172.28.18.142 compuware
Try commenting out both of these lines, and run the agent (snmpd -f
-Le).
Does it start up OK?
immediately and
then destroy it.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Dave Shield
Sent: Friday, 28 September 2007 6:41 PM
To: Lee, John (Sydney)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Cannot start snmpd plus snmp dead but subsys locked msg
On 28/09/2007
One thing to try first:
What does
snmpd -f -Le -C
display?
Does that crash or not?
# snmpd -f -Le -C
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run snmpconf -g basic_setup to help you
Hi fellow net-snmp users,
I have been trying to install net-snmp on Fedora 7 box without success.
Basically, whenever I ran it, I receive stopping failed message and
snmp dead but subsys locked message.
# uname -r
2.6.21-1.3194.fc7
# yum list net-snmp
Loading installonlyn plugin
Installed
You should start the SNMP agent *manually* (i.e. not using
the /etc/init.d/snmpd script), using the same options as in
/etc/snmp/snmpd.options, plus -f -Le
i.e. something like
snmpd -f -Le `cat /etc/snmp/snmpd.options`
# snmpd -f -Le 'cat /etc/snmp/snmpd.options'
Segmentation
11 matches
Mail list logo