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.

>         can i set the threshold of the directive disk OR file OR load 
> dynamicly  but not
> modifying them in the snmpd.conf and restarting the agent?

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.
  But you could configure an equivalent monitor directive that watched
'dskAvail' directly, and adjust the relevant threshold value
dynamically.


Two things to be aware of:
  - I have a feeling that entries set up using the "monitor" config
directive may be read-only.  You might need to configure the tests via
SNMP SET requests into the various DisMan Event tables directly.
Again, use the existing configuration as a template.
  - 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.


Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to