Re: error msg "No such instance ~" on trap message?
On 13 April 2010 06:47, key wrote: Where did you get the "monitor" line to use? Because it doesn't seem sensible to me. Let's pick it apart a bit: > monitor -r 30 -S -e CPUTemperature1 -u radiant "CPU temperature 1" Run some query every 30 s, and if it matches, then send the notification identified by the token "CPUTemperature1". OK so far > -o > SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent Append a varbind to the trap request, being the value of the "sunPlatNumericSensorCurrent" column object, from the same row that triggered the trap. OK so far > -o SUN-PLATFORM-MIB::sunPlatSensorTable.1 Append a varbind to the trap request, being the value of the overall sunPlatNumericSensorEntry internal object, from the same row that triggered the trap? How can you have a value from "the whole table" and from a particular row at the same time? That simply doesn't make sense! > -I > SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent.2 Append a varbind to the trap request, being the value of "sunPlatNumericSensorCurrent" from row #2 - regardless of which row triggered the trap? That's syntactically valid (unlike the -o parameter above), but doesn't really make much sense semantically. Why would you add the same sunPlatNumericSensorCurrent value to every single trap, even when reporting problems with a different sensor? > 0 > 40 Send the a trap when 0 is more than 40 ? That doesn't make sense either. I'm surprised this ever generates a trap in the first place. But I'd suggest you start by fixing the nonsense in your original monitor entry. Dave -- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: error msg "No such instance ~" on trap message?
Thank you, Dave. I'm sorry, I made some mistakes while I wrote the post. My original monitor entry is this... monitor -r 30 -S -e CPUTemperature1 -u radiant "CPU temperature 1" -o SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent -o SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorBaseUnits -I SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent.20 > 40 notificationEvent CPUTemperature1 RADFINDER-NOTIFICATION-MIB::rfcNotiTempSensors 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? Thank you again. Best regards Key -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, April 13, 2010 4:27 PM To: key Cc: net-snmp-users@lists.sourceforge.net Subject: Re: error msg "No such instance ~" on trap message? On 13 April 2010 06:47, key wrote: Where did you get the "monitor" line to use? Because it doesn't seem sensible to me. Let's pick it apart a bit: > monitor -r 30 -S -e CPUTemperature1 -u radiant "CPU temperature 1" Run some query every 30 s, and if it matches, then send the notification identified by the token "CPUTemperature1". OK so far > -o SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent Append a varbind to the trap request, being the value of the "sunPlatNumericSensorCurrent" column object, from the same row that triggered the trap. OK so far > -o SUN-PLATFORM-MIB::sunPlatSensorTable.1 Append a varbind to the trap request, being the value of the overall sunPlatNumericSensorEntry internal object, from the same row that triggered the trap? How can you have a value from "the whole table" and from a particular row at the same time? That simply doesn't make sense! > -I SUN-PLATFORM-MIB::sunPlatNumericSensorTable.1.sunPlatNumericSensorCurrent.2 Append a varbind to the trap request, being the value of "sunPlatNumericSensorCurrent" from row #2 - regardless of which row triggered the trap? That's syntactically valid (unlike the -o parameter above), but doesn't really make much sense semantically. Why would you add the same sunPlatNumericSensorCurrent value to every single trap, even when reporting problems with a different sensor? > 0 > 40 Send the a trap when 0 is more than 40 ? That doesn't make sense either. I'm surprised this ever generates a trap in the first place. But I'd suggest you start by fixing the nonsense in your original monitor entry. Dave -- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: error msg "No such instance ~" on trap message?
> From: key [mailto:keyofm...@radiantech.net] > 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: error msg "No such instance ~" on trap message?
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:mike_ay...@tva.tvworks.com] Sent: Wednesday, April 14, 2010 11:47 AM To: key; Dave Shield Cc: net-snmp-users@lists.sourceforge.net Subject: RE: error msg "No such instance ~" on trap message? > From: key [mailto:keyofm...@radiantech.net] > 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: error msg "No such instance ~" on trap message?
On 14 April 2010 05:50, key wrote: > 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"? It looks as if you need to tell snmptrapd to load the Entity MIB. It won't do this by default. Try starting this using snmptrapd -m +ENTITY-MIB .. (or you can do this via the config files - see the man pages for details) Dave -- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users