RE: DisMan mteTriggers Not Firing
"Jamuel Starkey" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <08ABB549D030BC45A3063A5736E18EC10A9779C3@EX-101.mail.navisite.com> |
Hi, > -----Original Message----- > The "defaultMonitors" directive will set up seven "monitor" entries, > each of which will fire when the error flag in the corresponding UCD > table is raised. > When that error flag is cleared, then the relevant trigger is > rearmed > ready for the next time. But this does not itself generate a > notification. > > If you want notifications for both error-flag-set and error-flag- > cleared then this requires *two* monitor entries. > You'll have to configure the second set yourself - the > "defaultMonitors" directive doesn't do that. Thanks. Dumb question: do you have a sample as to how one might accomplish both the set/clear notifications for the process monitor: Here's what I think I should do: To trap when a process is in error, then look for prErrorFlag !=0: monitor -o prName -o prErrMessage "procTable" prErrorFlag == 0 To look for error-clear, then look for prErrorFlag == 0 (use -S to not trigger on pre-exising preErrorFlags == 0 at startup): monitor -S -o prName "procTable" prErrorFlag == 0 But when I do that I get this in my /var/log/snmpd.log: error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) /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. Any suggestions? Also does the monitor expression syntax allow for logical OR or AND conditionals e.g. monitor "procTable" prErrorFlag !=0 && prNames == "sendmail" Thanks again for your help! Cheers, JPS ATTENTION: The information contained in this message may be legally privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender by telephone at (415) 318-7500 and delete or destroy any copy of this message ------------------------------------------------------------------------- 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