Re: DisMan mteTriggers Not Firing
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2008/6/30 Jamuel Starkey <[email protected]>: > To trap when a process is in error, then look for prErrorFlag !=0: > monitor -o prName -o prErrMessage "procTable" prErrorFlag == 0 I presume you mean "prErrorFlag != 0", but otherwise, OK. > To look for error-clear, then look for prErrorFlag == 0 Yup > monitor -S -o prName "procTable" prErrorFlag == 0 Close.... > /etc/snmp/snmpd.conf: line 78: Error: duplicate trigger name > > So I'm guessing I can't have two monitors for the same "procTable" OID. Almost. "procTable" is not an OID - it's a textual identifier - a name for the trigger. And this name must be unique. Try monitor -o prName -o prErrMessage "procTable" prErrorFlag == 0 monitor -S -o prName "procTable reset" prErrorFlag == 0 > Also does the monitor expression syntax allow for logical OR or AND > conditionals e.g. > monitor "procTable" prErrorFlag !=0 && prNames == "sendmail" No. The DisMan Event MIB work with a single comparison of one OID (exact or wildcarded) against a constant value (typically numeric). Handling more complex expressions is the role of the DisMan Expression MIB, which would allow you to combine different tests (of related OIDs) into a single expression. The result of that could then be used in an Event-MIB comparison. There is a preliminary implementation of the Expression MIB in the Net-SNMP agent, but I can't remember how complete it is. Probably not very. I seem to spend all my time answering questions on these lists, which doesn't leave much room to developing new code :-( Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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