Re: My process is blocked while sendin a trap

Daniel Lacey <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
When I read this, it seems to say that there is no current way to use
more than one AgentX daemon for a particular MIB subtree...

Given an enterprise MIB (fictitious enterprise OID 30303 for NEWENT,
with NEWDEV being the new device)

I have an example portion of the MIB below.

I was planning on doing what I believe you describe in your post.

What I would like to do is have one Agent handle traps, another handle
GET/SET, or further partition the Agents for functionality and
performance. The Agents would be querying a device not on the server
where the Agent is running.

I have the Agent running on Linux (CentOS and RH Enterprise) and it is
sending traps generated from conditions on the remote device.

I have not gotten to the SET/GET portion yet....

So if I have 2 Agents, each handling separate sections of the private
enterprise MIB NEWENT, will this work?

Or will they try to "register" on top of each other?

Did I miss something in the documentation? ( I hate that as much as
others... :-)

******************************************************************

NEWDEV-TRAP-MIB
DEFINITIONS ::= BEGIN

IMPORTS

MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,

Integer32, Unsigned32, enterprises, IpAddress

FROM SNMPv2-SMI

DisplayString, DateAndTime, TruthValue

FROM SNMPv2-TC

InetAddressType, InetAddress

FROM INET-ADDRESS-MIB;

NEWENT OBJECT IDENTIFIER ::= { enterprises 30303 }

NEWDEV OBJECT IDENTIFIER ::= { NEWENT 1 }

NEWDEVTrapMIB MODULE-IDENTITY

LAST-UPDATED "0609220000Z"

ORGANIZATION "NEWENT Consulting Inc."

CONTACT-INFO "NEWENT Consulting Inc.

133 La Placita Circle

Santa Fe, NM 87505"

DESCRIPTION

"The MIB module for traps from the T7000 node."

::= { NEWDEV 2 }

NEWENT OBJECT IDENTIFIER ::= { enterprises 30303 }

NEWDEVTrapObjects OBJECT IDENTIFIER ::= { NEWDEVTrapMIB 0 }

NEWDEVEvents OBJECT IDENTIFIER ::= { NEWDEVTrapMIB 1 }

NEWDEVAlarms OBJECT IDENTIFIER ::= { NEWDEVTrapMIB 2 }

--*************************************************************

-- NEWDEV trap objects

--*************************************************************

NEWDEVTrapObjAlarmSeverity OBJECT-TYPE

SYNTAX INTEGER {

critical (0),

major (1),

minor (2),

informational (3),

other (4)

}

MAX-ACCESS accessible-for-notify

STATUS current

DESCRIPTION

"Alarm Severity."

::= { NEWDEVTrapObjects 11 }

NEWDEVDiskLvlCritical NOTIFICATION-TYPE

OBJECTS { NEWDEVTrapObjAlarmSeverity }

STATUS current

DESCRIPTION

"Need Description"

::= { NEWDEVEvents 2004 }

******************************************************************

Dave Shield wrote:

On 11/10/06, Arnaud BODENAN <[email protected]> wrote:

In fact, I'm using trap mechanism to dispatch all errors arising in our
servers.
Chances that error messages will be sent massively are statically low...

Good.

But this scenario can occur, and this blocks my server... I just to try to
figure out if I can imagine a work around.

The plan I have in mind is to separate out the processing of incoming requests,
and generating notifications - use two separate AgentX sessions for
these two purposes.

That should help avoid the sort of collision that you're seeing.
But nothing will happen until after 5.4 is out.

The problem is that we have multiple servers that can potentially send traps.

That's OK. The problem is with having a single subagent that is both
sending traps and receiving requests at the same time. Having
several servers running in parallel doesn't raise the same issues -
they'll be using different sessions already. It's a problem that's
focussed on each master-subagent link individually.

Dave

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

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.