Hi,

Thanks Robert for your reply.

I've had a quick look at the disman event mib. Is there a way, from my
code, that I can detect when an alarm has been generated? I have a
requirement to be able to detect this within the code so that I can log
that a trap has been generated. 

In relation to the Master Agent question, we would prefer to use the
net-snmp version bundled with Red hat (to avoid having to support it).
We are currently using 5.0.9, but I see we can upgrade to 5.1.2. This
may be a problem for us. What do you need to change to register
different contexts? Additionally, by changing the OIDs, does that in
effect mean either: (a) writing our own Master agent that will collate
all the information from the different Subagents and 'supply' the
information to a management browser using one OID; (b) supply multiple
MIBs to a management browser? Please note that I have other traps,
counters etc to support for our own product, so its not just monitoring
system resources and processes!!!

Thanks
Maria

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Story (Users)
Sent: 03 November 2004 19:00
To: Maria McCafferty
Cc: [EMAIL PROTECTED]
Subject: Re: Master Agent & SNMP MIBs

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



-------------------------------------------------------
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