Re: disman event mib monitor statement question
Manjul Rai <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CALe1ZyEqS1DY8=EhHmhb6aMduw9dacTZk8F-vgk5fwxTUr_DsQ@mail.gmail.com> |
Dave, Thanks for your reply. I will try your recommendations; however, I was able to find a solution by exploiting a "potential bug." The solution is: notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus ifName ifDescr notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus ifOperStatus ifName ifDescr monitor -u snmpdTrapUser -t -r 30 -e linkUpTrap "Generate linkUp" ifOperStatus != 2 monitor -S -u snmpdTrapUser -t -r 30 -e linkDownTrap "Generate linkDown" ifOperStatus == 2 The "S" flag, according to the man page "indicates that the monitor expression should *not* be evaluated when the agent first starts up. The first evaluation will be done once the first repeat interval has expired." However, during testing, I noticed that if the interface is both OperDown and AdminDown when the agent starts up, the agent does not generate the linkDown trap. Moreover, no linkDown trap is generated during all future checks for "ifOperStatus == 2." My instinct is that there is a bug with the "S" flag in the flavor of Net-SNMP I am running. Manjul On Mon, Sep 10, 2012 at 5:27 PM, Dave Shield <[email protected]>wrote: > On 10 September 2012 18:49, Manjul Rai <[email protected]> wrote: > > I have read the man pages and it seems that the monitor statement only > > accepts one expression. I would love to find out if there is any way to > do > > AND/OR logic in the monitor statement. > > That's essentially the purpose of the DisMan Expression MIB. > You'd configure an entry within the expExpressionTable to track > the AND/OR logic on the object(s) of interest, and then have > a "monitor" statement watching the expValueTable. > > There is a preliminary implementation of this MIB within the Net-SNMP > agent, but it's never really had much use or feedback, so I wouldn't like > to say how complete or solid it might be. But that's definitely the way > that things are meant to work. > > Trylooking at this, and feed back your experiences to the > active developers. > > Dave > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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