Re: Bug? Got it!
On Thu, 2006-03-02 at 14:00 -0500, Jean-Sebastien Morisset wrote: Can we use an AND in the monitor line? Something like: monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0 dskUsed = 0 Not directly. The Event MIB is designed to monitor a single value - not arbitrary combinations. But I've got some good news and some bad news. The good news is that the DisMan working group also developed an Expression MIB - explicitly for this sort of requirement. So the Expression MIB can be configured to combine dskErrorFlag and dskUsed, and the Event MIB configured to monitor the Expression MIB (rather than the diskTable directly). The bad news is that the Net-SNMP doesn't currently implement the Expression MIB. There is some preliminary work on a full implementation (as well as an earlier incomplete version), but the code shipped with 5.3.0.1 isn't really useable. The good news is that the CVS branch includes newer code that is somewhat more complete, and *may* handle the example above. The bad news is that this is still incomplete, and definitely not fully tested. But it's something you might like to investigate. Alternatively, you might prefer to try and track down what's going wrong with the diskTable itself. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Bug? Got it!
On Fri, Mar 03, 2006 at 10:37:37AM +, Dave Shield wrote: On Thu, 2006-03-02 at 14:00 -0500, Jean-Sebastien Morisset wrote: Can we use an AND in the monitor line? Something like: monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0 dskUsed = 0 Not directly. The Event MIB is designed to monitor a single value - not arbitrary combinations. But I've got some good news and some bad news. The good news is that the DisMan working group also developed an Expression MIB - explicitly for this sort of requirement. So the Expression MIB can be configured to combine dskErrorFlag and dskUsed, and the Event MIB configured to monitor the Expression MIB (rather than the diskTable directly). The bad news is that the Net-SNMP doesn't currently implement the Expression MIB. There is some preliminary work on a full implementation (as well as an earlier incomplete version), but the code shipped with 5.3.0.1 isn't really useable. The good news is that the CVS branch includes newer code that is somewhat more complete, and *may* handle the example above. The bad news is that this is still incomplete, and definitely not fully tested. But it's something you might like to investigate. Alternatively, you might prefer to try and track down what's going wrong with the diskTable itself. Dave, I'm using OpenNMS to receive these traps, so I'll see if I can filter them out there. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED] Personal Home Page http://jsmoriss.mvlan.net/ Underwater and Travel Photographs http://www.mvpix.com/ --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 01:08:49PM +, Dave Shield wrote: On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote: On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote: Can you try walking the UCD-SNMP-MIB:dskTable Ah, of course, I didn't notice that dskTable in the error message. :-) Here you go dskErrorFlag.1 = INTEGER: 0 dskErrorFlag.2 = INTEGER: 0 dskErrorFlag.3 = INTEGER: 0 No sign of an error condition there, so the monitor trigger shouldn't be firing. Strange. Ummm... Can you try running the agent with -Ddisman:event and report the output? I probably haven't got the debugging code quite right for pinning this sort of problem down, but that should give us something to work with. Dave, I was able to reproduce the problem. I copied a few gigs on the filesystem and then removed it. Right after, I ran an snmpwalk. It stuck for second half way through, and then gave me the following: # snmpwalk -Ddisman:event -c -O s -v 2c devsolx4 UCD-SNMP-MIB:dskTable No log handling enabled - turning on stderr logging registered debug token disman:event, 1 dskIndex.1 = INTEGER: 1 dskIndex.2 = INTEGER: 2 dskIndex.3 = INTEGER: 3 dskPath.1 = STRING: / dskPath.2 = STRING: /export/home dskPath.3 = STRING: /export/san dskDevice.1 = STRING: /dev/dsk/c0t0d0s0 dskDevice.2 = STRING: /dev/dsk/c0t2d0s2 dskDevice.3 = STRING: /dev/dsk/c5t600C0FF00824C347B635AD00d0s2 dskMinimum.1 = INTEGER: -1 dskMinimum.2 = INTEGER: -1 dskMinimum.3 = INTEGER: -1 dskMinPercent.1 = INTEGER: 50 dskMinPercent.2 = INTEGER: 25 dskMinPercent.3 = INTEGER: 25 dskTotal.1 = INTEGER: 53651285 dskTotal.2 = INTEGER: 142436675 dskTotal.3 = INTEGER: 857894876 dskAvail.1 = INTEGER: 48398025 dskAvail.2 = INTEGER: 140139526 dskAvail.3 = INTEGER: 821699219 dskUsed.1 = INTEGER: 4716748 dskUsed.2 = INTEGER: -2147483648 dskUsed.3 = INTEGER: 10458811 dskPercent.1 = INTEGER: 9 dskPercent.2 = INTEGER: 3108 dskPercent.3 = INTEGER: 1 dskPercentNode.1 = INTEGER: 3 dskPercentNode.2 = INTEGER: 0 dskPercentNode.3 = INTEGER: 0 dskErrorFlag.1 = INTEGER: 0 dskErrorFlag.2 = INTEGER: 1 dskErrorFlag.3 = INTEGER: 0 dskErrorMsg.1 = STRING: dskErrorMsg.2 = STRING: /export/home: less than 25% free (= 3108%) dskErrorMsg.3 = STRING: -- Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED] Personal Home Page http://jsmoriss.mvlan.net/ Underwater and Travel Photographs http://www.mvpix.com/ --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Bug? Got it!
On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote: I was able to reproduce the problem. I copied a few gigs on the filesystem and then removed it. Right after, I ran an snmpwalk. It stuck for second half way through, and then gave me the following: dskTotal.2 = INTEGER: 142436675 dskAvail.2 = INTEGER: 140139526 dskUsed.2 = INTEGER: -2147483648 Urk! dskErrorFlag.2 = INTEGER: 1 Well that would certainly explain why the monitor entry is being triggered :-) OK - so the problem lies with the disk table. Unfortunately, that code isn't particularly clean. (I've got plans, but not enough time). What O/S is this running on? Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote: On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote: I was able to reproduce the problem. I copied a few gigs on the filesystem and then removed it. Right after, I ran an snmpwalk. It stuck for second half way through, and then gave me the following: dskTotal.2 = INTEGER: 142436675 dskAvail.2 = INTEGER: 140139526 dskUsed.2 = INTEGER: -2147483648 Urk! dskErrorFlag.2 = INTEGER: 1 Well that would certainly explain why the monitor entry is being triggered :-) OK - so the problem lies with the disk table. Unfortunately, that code isn't particularly clean. (I've got plans, but not enough time). What O/S is this running on? [EMAIL PROTECTED]:~$ uname -a SunOS devsolx4 5.10 Generic_118844-28 i86pc i386 i86pc :-) js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED] Personal Home Page http://jsmoriss.mvlan.net/ Underwater and Travel Photographs http://www.mvpix.com/ --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote: On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote: I was able to reproduce the problem. I copied a few gigs on the filesystem and then removed it. Right after, I ran an snmpwalk. It stuck for second half way through, and then gave me the following: dskTotal.2 = INTEGER: 142436675 dskAvail.2 = INTEGER: 140139526 dskUsed.2 = INTEGER: -2147483648 Urk! dskErrorFlag.2 = INTEGER: 1 Well that would certainly explain why the monitor entry is being triggered :-) OK - so the problem lies with the disk table. Unfortunately, that code isn't particularly clean. (I've got plans, but not enough time). Dave, Can we use an AND in the monitor line? Something like: monitor -r 70 -o dskPath -o dskErrorMsg dskTable dskErrorFlag != 0 dskUsed = 0 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED] Personal Home Page http://jsmoriss.mvlan.net/ Underwater and Travel Photographs http://www.mvpix.com/ --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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