query about monitor expression
gunsnroses <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am very new to snmp. I have an urgent query. Please let me know how monitor [OPTIONS] NAME EXPRESSION works. I have an object systemVoltage which when get gets the value of system voltage. How do I use this to send a trap whenever it falls outside 5 and +12V? I guess the monitor expression will be monitor -r 60 OID 5 12 I have a question about the same if the above holds. If voltage goes above 12, then after some time comes back within the range and goes back to above 12 again, will the trap be sent again? I think it wont be sent, as in man page, its written that it has to cross lower threshold before firing again. Can somebody please confirm this. If it does not work this way, what should I do to make it fire this way as below? I want it this way: OID value > 12---send trap, val--->8(value comes within range), val--->14(more than 12) send trap val > 12--->send trap, val ---->2(less than 5) --->send trap Can I send different messages when it goes below and when it goes above? Thanks a lot, zix ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ 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