Thank you for your help and rapid response, Mike.

I modified trapsink entry to "trap2sink localhost public".

And monitor entry is :

monitor -r 10 -S -e CpuTempHigh -u radiant -i 
ENTITY-MIB::entPhysicalTable.1.entPhysicalDescr.20 -o 
SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent.20 
"CPU temperature" -I 
SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent.20 > 
30 
notificationEvent CpuTempHigh RADFINDER-NOTIFICATION-MIB::rfcNotiTempSensors


Now snmptrapd got this:

2010-04-14 13:34:11 localhost [UDP: [0.0.0.0]->[127.0.0.1]:-32020]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (5041) 0:00:50.41      
SNMPv2-MIB::snmpTrapOID.0 = OID: RADFINDER-NOTIFICATION-MIB::rfcNotiTempSensors 
SNMPv2-SMI::mib-2.47.1.1.1.1.2.20 = STRING: "CPU 0 Junction Temperature Sensor" 
SNMPv2-SMI::enterprises.42.2.70.101.1.1.8.1.4.20 = INTEGER: 53

Thanks!

But...
Why does snmptrapd display "SNMPv2-SMI::mib-2.47.1.1.1.1.2.20" as OID of the 
first varbind
"-i ENTITY-MIB::entPhysicalTable.1.entPhysicalDescr.20"?

I expected that snmptrapd displays 
"ENTITY-MIB::entPhysicalTable.1.entPhysicalDescr.20", not 
"SNMPv2-SMI::mib-2.47.1.1.1.1.2.20".
Did I miss something to do?

Thanks again.

Key


-----Original Message-----
From: Mike Ayers [mailto:[email protected]] 
Sent: Wednesday, April 14, 2010 11:47 AM
To: key; Dave Shield
Cc: [email protected]
Subject: RE: error msg "No such instance ~" on trap message?

> From: key [mailto:[email protected]]
> Sent: Tuesday, April 13, 2010 7:10 PM

> And I have one more question.
> RADFINDER-NOTIFICATION-MIB::rfcNotiTempSensors's OID is
> RADFINDER-NOTIFICATION-MIB::rfcNotiFault.2.
> But I wanted snmptrapd to display
> "RADFINDER-NOTIFICATION-MIB::rfcNotiTempSensors" not
> "RADFINDER-NOTIFICATION-MIB::rfcNotiFault Enterprise Specific Trap(2)".
> What should I do for this?

        From your earlier post:

[SNIP]
This is the message that snmptrapd got:

2010-04-13 13:52:09 pluto [192.168.131.210] (via UDP: 
[0.0.0.0]->[127.0.0.1]:-32191) TRAP, SNMP v1, community public
[/SNIP]

        If you send the trap as v2c or v3, it will be recieved as 
rfcNotiTempSensors.  Also, if the relative ID of rfcNotiFault is 0, the v1 trap 
should be translated back to rfcNotiTempSensors, IIRC.


        HTH,

Mike





------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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