In my "snmpd.conf" file, I set the monitor directives for sending traps as the following:
monitor -r 20 -u test -S -o sysUpTime.0 -I -o lmFanSensorsDevice.1 "ChasisFan4Speed" lmFanSensorsValue.1 < 2000 monitor -r 20 -u test -S -o sysUpTime.0 -I -o lmFanSensorsDevice.2 "ChasisFan3Speed" lmFanSensorsValue.2 < 2000 monitor -r 20 -u test -S -o sysUpTime.0 -I -o lmFanSensorsDevice.5 "ChasisFan1Speed" lmFanSensorsValue.5 < 2000 I tested it by making "ChasisFan4Speed" to 0, and I did get the trap. This is the message from runnung "-Ddisman": disman:event:trigger:monitor: Running trigger (ChasisFan4Speed) disman:event:delta: Bool comparison: (0 < 2000) 1 disman:event:trigger:fire: Firing boolean test: LM-SENSORS-MIB::lmFanSensorsValue.1 disman:event:fire: Event fired (_snmpd, _mteTriggerFired) disman:event:fire: Firing notification event disman:event:fire: Adding event objects (first) disman:event:fire: Adding trigger objects (general) disman:event:fire: Adding trigger objects (specific) disman:event:objects: Objects add (snmpd.conf, _BChasisFan4Speed) disman:event:fire: Adding event objects (internal) disman:event:trigger:monitor: Running trigger (ChasisFan3Speed) disman:event:delta: Bool comparison: (3459 < 2000) 0 disman:event:trigger:monitor: Running trigger (ChasisFan1Speed) disman:event:delta: Bool comparison: (3381 < 2000) 0 But after that, no matter what I do, like making "ChasisFan3Speed" to 0, making "ChasisFan1Speed" to 0, or making "ChasisFan4Speed" back to 3500, I always got: disman:event:trigger:monitor: Running trigger (ChasisFan4Speed) disman:event:delta: Bool comparison: (0 < 2000) 1 disman:event:trigger:monitor: Running trigger (ChasisFan3Speed) disman:event:delta: Bool comparison: (3459 < 2000) 0 disman:event:trigger:monitor: Running trigger (ChasisFan1Speed) disman:event:delta: Bool comparison: (3381 < 2000) 0 and no traps ever triggered. Only if I do another snmpwalk or snmpget, the sampling values will be read right again and traps are triggered. Why? ------------------------------------------------------------------------- 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 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