can't get linkUpDownNotifications working
"H. McManus" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Genexis BV |
| Message-ID | <[email protected]> |
Hi, I'm trying to get linkUpDownNotifications to work without much success. I have compiled net-snmp 5.3.0.1 under linux (Debian) with the disman and oid patches. I am running the daemon as `snmpd -Ddisman -d -Le -p /var/run/snmpd.pid` From the debugging output, I can see the interfaces being queried: 2006-03-13 09:30:38 Received SNMP packet(s) from callback: 1 on fd 3 2006-03-13 09:30:38 Received SNMP packet(s) from callback: 1 on fd 3 2006-03-13 09:30:38 GETNEXT message 2006-03-13 09:30:38 GETNEXT message 2006-03-13 09:30:38 -- IF-MIB::ifOperStatus.3 2006-03-13 09:30:38 -- IF-MIB::ifOperStatus.3 It's then checking them: 2006-03-13 09:30:38 disman:event:delta: disman:event:delta: Bool comparison: (1 != 2) 1 2006-03-13 09:30:38 Bool comparison: (1 != 2) 1 2006-03-13 09:30:38 disman:event:delta: disman:event:delta: Bool comparison: (1 != 2) 1 2006-03-13 09:30:38 Bool comparison: (1 != 2) 1 2006-03-13 09:30:38 disman:event:delta: disman:event:delta: Bool comparison: (1 != 2) 1 2006-03-13 09:30:38 Bool comparison: (1 != 2) 1 That last line there is the relevant one. I'd just inserted a cable in the port, bringing the interface up. But now debug tells me: 2006-03-13 09:30:38 disman:event:fire: disman:event:fire: Event fired (snmpd.conf, _linkUp) 2006-03-13 09:30:38 Event fired (snmpd.conf, _linkUp) 2006-03-13 09:30:38 disman:event:fire: disman:event:fire: No matching event 2006-03-13 09:30:38 No matching event 2006-03-13 09:30:38 disman:event:trigger:monitor: disman:event:trigger:monitor: Running trigger (linkDown) 2006-03-13 09:30:38 Running trigger (linkDown) If I unplug the cable and bring the interface down, I get the same error in reverse. 2006-03-13 09:40:38 disman:event:delta: disman:event:delta: Bool comparison: (1 == 2) 0 2006-03-13 09:40:38 Bool comparison: (1 == 2) 0 2006-03-13 09:40:38 disman:event:delta: disman:event:delta: Bool comparison: (1 == 2) 0 2006-03-13 09:40:38 Bool comparison: (1 == 2) 0 2006-03-13 09:40:38 disman:event:delta: disman:event:delta: Bool comparison: (2 == 2) 1 2006-03-13 09:40:38 Bool comparison: (2 == 2) 1 2006-03-13 09:40:38 disman:event:trigger:fire: disman:event:trigger:fire: Firing boolean test: Firing boolean test: IF-MIB::ifOperStatus.3IF-MIB::ifOperStatus.3 2006-03-13 09:40:38 2006-03-13 09:40:38 disman:event:fire: disman:event:fire: Event fired (snmpd.conf, _linkDown) 2006-03-13 09:40:38 Event fired (snmpd.conf, _linkDown) 2006-03-13 09:40:38 disman:event:fire: disman:event:fire: No matching event 2006-03-13 09:40:38 No matching event 2006-03-13 09:41:38 disman:event:trigger:monitor: disman:event:trigger:monitor: Running trigger (linkUp) 2006-03-13 09:41:38 Running trigger (linkUp) 2006-03-13 09:41:38 Is this fixable? Is it something I've done wrong somewhere? Thanks Helen. ------------------------------------------------------- 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=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ 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