--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 10/12/2007, PoWah Wong <[EMAIL PROTECTED]>
> wrote:
> > I compiled the agent myself....
> > ./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
> 
> Err....  but if you compiled the agent yourself
> (configure; make), then this won't actually
> create an RPM.  It simply compiles the binaries,
> ready for installing manually with "make install".
> 
I had not copied the entire makefile which will create
a rpm.

> I'm still not convinced that you are necessarily
> running the agent that you think you are.
> 
> 
> > It is started by:
> > service snmpd start
> >
> > It is restarted by:
> > service snmpd restart
> 
> Can you please try running (and restarting) the
> agent
> manually:
> 
>     service snmpd stop
>     /usr/local/sbin/snmpd -f -Le
> 
> Does that send a trap to the trap receiver?
> 
No.

> Restart using:
>     ps -ef | grep snmpd
>     kill -HUP {pid}
> 
> Does that send a trap to the trap receiver?
> 
No.

The sessions are:
At snmpd machine:
# ps -ef|grep snmp
root     21784     1  0 09:53 ?        00:00:00
/usr/local/sbin/snmpd -f -Le
root     23278  4313  0 09:55 pts/0    00:00:00 grep
snmp
# kill -HUP 21784

# tail -n 20 /var/log/snmpd.log
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1
Received TERM or STOP signal...  shutting down...

# kill -9 21784

At snmpd machine (another ssh session):
# /usr/local/sbin/snmpd -f -Le
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1
Reconfiguring daemon
NET-SNMP version 5.4.1 restarted
Connection to fc6.mypc.com closed.


However the snmptrap command at the snmpd
(fc6.mypc.com) still can send trap:
# snmptrap -v 3 -u test_MD5_AES -l authPriv -a MD5 -A
12345x AES -X 87654321 -e 0x800000000102030405060708
172.20.11.58:162 2000  .1.2.3..7.86

At the snmptrapd machine:
# snmptrapd -f -C -c /home/tcma/snmp/snmptrapd.conf
-Le
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1

2007-12-11 10:09:15 fc6.mypc.com [UDP:
[172.20.11.245]:32823]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:
(2000) 0:00:20.00      SNMPv2-MIB::snmpTrapOID.0 =
OID: iso.2.3.4.5.6.7.8




      Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New 
Mail today or register for free at http://mail.yahoo.ca 

-------------------------------------------------------------------------
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

Reply via email to