On Wed, 3 Nov 2004 17:38:18 -0000 Maria wrote:
MM> I would like to be able to generate traps on certain system traps such
MM> as cpu usage, disk space etc. The existing/supplied MIBs already include
MM> stats for this. However, I also want to be able to monitor these and
MM> generate alarms under certain conditions from within my code.

Well, the DISMAN event mib will already do monitoring and send notifications.
See the snmpd.conf man page for details.

MM> can I use some of the Net-SNMP code to query the process tables; or am I
MM> best just to monitor the process tables myself and create my own MIB?

Monitoring done in the agent is probably best left to the existing DISMAN event
stuff. But you could do it yourself if you really needed to, as long as you
didn't need to do it during set processing.


MM> Is it possible to run the Net-SNMP tutorial with multiple example-demon
MM> subagents? If so, how can I retrieve the values for each of these
MM> Subagents?

Not without some changes. You would have to have the sub-agents register unique
OID ranges, be changing the OIDs or using contexts. I believe using contexts
from a sub-agent is new for 5.2

MM> I can only get the Master agent to retrieve data from one of the
MM> subagents (despite the fact that multiple are registered with the master
MM> agent). Is this a problem because they are both supplying the same
MM> information?

Yes. Contexts is the answer.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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