Re: monitor cpu AND memory?
"Leo Lei" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield£º sorry for delay reply, Dave, cause i have to do more basic reading, including manual and RFCs. > >On 03/08/06, Leo Lei <[email protected]> wrote: >> can i monitor the cpu idle time AND memory usage and then send a trap? > >Yes. >The memory usage should be covered by the "defaultMonitors" directive. >Monitoring the CPU usage would require a separate "monitor" entry, but >you can use the other tests as a template. Yes, i have read compeletely the part of directives in snmpd.conf(5) manual related with ucdavis MIB such as load,file and so on, and know how and which some entries added to the realted ucdavis MIB table. yes, using monitor directive DO CAN monitor cpu idle time and memory usage(included with "defaultMonitors yes"). thanks. >Sort-of. >The original UCD tables didn't support dynamic modification of the >threshold value (except by changing the config file and rereading it). > So the dskErrorFlag threshold (and hence the behaviour set up by >"defaultMonitors") will be fixed. yeah, i have walked through the ucdavis MIB definition, all the OIDs are read-only except prErrFix(so we can set it manual thourh snmpset and trigger a trap send), so i can not set the threshold dynamically by this way. > But you could configure an equivalent monitor directive that watched >'dskAvail' directly, and adjust the relevant threshold value >dynamically. If i configure a trigger test in the DisMan Event table manually, such as boolean test, i have to add entry into mteTriggerTable and mteTriggerBooleanTable respectively. these OIDs all are read-write, so i can set something dynamically by this way, right? i think it's a little complex cause that there are some dependency along with some tables. i have to be very careful. > >Two things to be aware of: > - I have a feeling that entries set up using the "monitor" config >directive may be read-only. sorry, english is not my native language, i really understand what you mean. ;( > - It's possible that you might need to disable a particular entry >before amending the threshold value(s). It's been a while since I >read the relevant RFCs, or worked on this code, but it definitely >rings a bell. maybe i have to do more digging at this aspect, including RFCs and code, and do more practise, so i can get you. thank you for your reply Dave! = = = = = = = = = = = = = = = = = = = = ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ Leo Lei ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ 2006-08-07 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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