On Wed, 21 Jul 2004, Dave Shield wrote:

>
> > in snmpd.conf i have:
> > proc rpc.mountd 1 1
> > trapsess -Ci -c public -v 2c snmp
> > rouser trapsender noauth
> > agentSecName trapsender
> > monitor -r 10 -o prNames -o prErrMessage "process table" prErrorFlag != 0
> >
> > the snmpd does not send trap then i stop the mountd daemon and check with
> > snmpwalk i see that snmpd reports that mountd is not running but trap is
> > not sent
>
> Does the trap handler running on the system 'snmp' receive a trap
> when the agent first starts up (and shuts down) ?
>
> In other words, is this a problem with sending traps in general,
> or is it specific to the DisMan monitoring?

 the snmptrapd on snmp host recieves traps from ha-rs2 then
i send the traps by hand and with snmptrap like this:
#snmptrap -c public -v 2c snmp '' UCD-SNMP-MIB::prNames.1 UCD-SNMP-MIB::prErrMessage.1 
s "process not running"

on snmp host in logs on snmp i get:
Jul 29 11:49:00 ha-rs1 snmptrapd[27136]: 2004-07-29 11:49:00 ha-rs2 [132.72.41.68]: 
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:
(199570022) 23 days, 2:21:40.22^ISNMPv2-MIB::snmpTrapOID.0 = OID: 
UCD-SNMP-MIB::prNames.1^IUCD-SNMP-MIB::prErrMessage.1 = STRING: process not running

then i start snmpd on ha-rs2 with configuration:
proc rpc.mountd 1 1
trapsess -Ci -c public -v 2c snmp
rouser trapsender noauth
agentSecName trapsender
monitor -r 10 -o prNames -o prErrMessage "process table" prErrorFlag != 0

in the logs on ha-rs2 i get:
Jul 29 11:57:37 ha-rs2 snmpd: snmpd startup succeeded
Jul 29 11:57:43 ha-rs2 snmpd[30183]: snmpd: send_trap: Timeout
Jul 29 11:57:43 ha-rs2 snmpd[30183]: NET-SNMP version 5.1.1
Jul 29 11:57:47 ha-rs2 snmpd[30183]: Connection from callback: 1 on fd 4
Jul 29 11:57:47 ha-rs2 snmpd[30183]: Received SNMP packet(s) from callback: 1 on fd 4
Jul 29 11:57:47 ha-rs2 snmpd[30183]: Connection from callback: 1 on fd 4
Jul 29 11:57:47 ha-rs2 snmpd[30183]: Connection from callback: 1 on fd 4
Jul 29 11:57:53 ha-rs2 snmpd[30183]: snmpd: send_trap: Timeout
Jul 29 11:57:53 ha-rs2 snmpd[30183]: Connection from callback: 1 on fd 4
...

 while there is no comunication on port 162 at all
on the 161 port i get the following with tcpdump
#tcpdump port 161 or port 162
tcpdump: listening on eth0
11:57:37.509665 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:38.510057 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:39.520045 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:40.530044 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:41.540043 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:42.550070 ha-rs2.33087 > snmp.snmp:  Inform(39)  system.sysUpTime.0=22 
S:1=[|snmp] (DF)
11:57:47.516835 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)
11:57:48.520059 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)
11:57:49.530065 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)
11:57:50.540072 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)
11:57:51.550065 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)
11:57:52.560071 ha-rs2.33087 > snmp.snmp:  Inform(37)  system.sysUpTime.0=1023 
.iso.org.dod=[|snmp] (DF)

 it seems that thereis no response from the snmpd on snmp to the informs
,but why does it send informs from port 161 to and not snptrapd on port 162?

then i switch to traps instead of informs there is no
snmpd: send_trap: Timeout
message just:
ul 29 12:24:09 ha-rs2 snmpd: snmpd startup succeeded
Jul 29 12:24:10 ha-rs2 snmpd[30769]: NET-SNMP version 5.1.1
Jul 29 12:24:20 ha-rs2 snmpd[30769]: Connection from callback: 1 on fd 4
Jul 29 12:24:20 ha-rs2 snmpd[30769]: Received SNMP packet(s) from
callback: 1 on fd 4
Jul 29 12:24:20 ha-rs2 snmpd[30769]: Connection from callback: 1 on fd 4
...

 while
#tcpdump port 161 or port 162
tcpdump: listening on eth0
12:24:09.770885 ha-rs2.33088 > snmp.snmp:  V2Trap(39)  system.sysUpTime.0=7298 
S:=[|snmp] (DF)
12:24:10.240816 ha-rs2.33088 > snmp.snmp:  V2Trap(39)  system.sysUpTime.0=33 
S:1=[|snmp] (DF)
12:24:20.246857 ha-rs2.33088 > snmp.snmp:  V2Trap(37)  system.sysUpTime.0=1034 
.iso.org.dod=[|snmp] (DF)

 again the traps are sent to port 161 instead to 162 why?



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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