Re: SNMPTRAP & trapto
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 07/11/06, BENAMAR Khalid <[email protected]> wrote: > > 1- i have create snmpd.conf > > com2sec local 127.0.0.1/32 public > com2sec local 192.168.0.0/24 public > > group MyROGroup v1 local > group MyROGroup v2c local > group MyROGroup usm local > > monitor -r 120 -u MyROGroup .... That won't work. "monitor" expects an SNMPv3 user name, not a group. And it does expect a proper *SNMPv3* user name, not one mapped from a community-based request. But that's probably not important just yet. > 2- i create snmptrapd.conf > > traphandle default /usr/bin/traptoemail -f [email protected] -s > smtp.xxx.com [email protected] Where is this "snmptrapd.conf" file? > 3- i launche snmptrapd > > snmptrapd -f -Le -F "%#02.2h:%#02.2j TRAP%w.%q from %A %v \n" -c > /usr/local/snmp/snmpconf/snmpd.conf OK. Though if you're using a traphandler, I'm not sure the -F format string is particularly relevant. > 4- i launche snmpd > > snmpd -Le -c /usr/local/snmp/snmpconf/snmpd.conf If you're using "-Le", then you probably want "-f" as well. But again, that's relatively minor. > 5- snmptrapd returns > > 2006-11-07 16:56:35 NET-SNMP version 5.2.1 Started. > 16:58 TRAP0.0 from root.xxx.com > 17:00 TRAP0.0 from 0.0.0.0 SNMPv2-MIB::sysUpTime.0 = Timeticks: (3) > 0:00:00.03 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart > SNMPv2-MIB::snmpTrapEnterprise.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 So it is receiving the trap, but not passing it on to the handler script. Can you try restarting the trap daemon using snmptrapd -f -Le -Dread_config,snmptrapd -c /usr/local/snmp/snmpconf/snmpd.conf and restart the main agent. What is the full output from snmptrapd? Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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