Re: restarting snmpd does not generate a trap

PoWah Wong <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
--- Dave Shield <[email protected]> wrote:

> On 10/12/2007, PoWah Wong <[email protected]>
> wrote:
> 
> > On the snmpd machine (fc6.mypc.com),
> > /usr/local/share/snmp/snmpd.conf is:
> > trapsess -v 3 -u test_MD5_AES -l authPriv -a MD5
> >   -A 12345678 -x AES -X 87654321
> >   -e 0x800000000102030405060708 172.20.11.58
> >
> > # snmptrap -v 3 -u test_MD5_AES -l authPriv -a MD5
> >   -A 12345678 -x AES -X 87654321
> >   -e 0x800000000102030405060708 172.20.11.58:162
> >   100 .1.2.3.4.5.6.7.8
> >
> > A trap is received on the snmptrapd machine
> > 2007-12-10 09:28:29 fc6.mypc.com:
> >     sysUpTimeInstance = Timeticks: (100)
> 0:00:01.00
> >     SNMPv2-MIB::snmpTrapOID.0 = OID:
> iso.2.3.4.5.6.7.8
> 
> > However, a trap is not received on 172.20.11.58
> when
> > restarting snmpd on fc6.mypc.com.
> 
> 
> Hmmm.... curiouser and curiouser....
> 
> I'm beginning to wonder whether the agent is
> actually
> using this config file.
> 
> Are you using a vendor-supplied agent, or one you
> compiled
> yourself?   How did you start the agent originally?
> How are you restarting it?
> 
> Dave
> 
I compiled the agent myself (net-snmp-5.4.1 on FC6):
mkdir net-snmp-5.4.1/agent/mibgroup/mymibs
cp mymibs/* net-snmp-5.4.1/agent/mibgroup/mymibs
cd net-snmp-5.4.1
./configure --with-libs=/usr/local/lib/libsensors.a
--with-defaults --with-openssl=/
--with-mib-modules="mymibs/myhw ucd-snmp/lmSensors"
--with-out-mib-modules="agent_mibs utilities"
make
...

The snmp daemon rpm is installed as follows:
chkconfig --add snmpd
chkconfig --level 0123456 snmpd off

It is started by:
service snmpd start

It is restarted by:
service snmpd restart


      Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.