I got into a similar problem, which I am still trying to fix.
The master agent in my case too is trying to connect on
/var/agentx/master...

How do I find to which socket does the sub-agent is trying to connect???

Regards,
Sri.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Arthur
Sent: Monday, December 18, 2006 2:40 PM
To: net-snmp-users@lists.sourceforge.net
Subject: RE: sending traps from embedded AgentX subagent

Dave,

Thank you for the help debugging this AgentX connection.

For the benefit of other list members:
Be sure that both ends of the AgentX connection are using the same
socket
type, address, and port. The Net-SNMP master in my case was trying to
use
the Unix domain socket /var/agentx/master, but I had my embedded
subagent
trying to connect on udp:localhost:705 socket. I fixed the setup
conflict in
my case by adding the following line to my snmdp.conf file:

agentxsocket udp:localhost:705

(I chose the internet socket for network portability reasons, versus
changing my embedded subagent to use the /var/agentx/master route.)

Thanks again,
David Arthur


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: Thursday, December 14, 2006 5:15 PM
To: David Arthur
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps from embedded AgentX subagent

On 14/12/06, David Arthur <[EMAIL PROTECTED]> wrote:
> >OK - try running the master agent with the '-d' flag.
> >Does it see the trap request coming from the subagent?
>
> This is what I get if I start with "snmpd -d -Dagentx -mall":

Just to check - this is the master agent you are running here,
yes?



> /usr/local/share/snmp/agentSNMPAlert.conf: line 7:
>                         Warning: Unknown token: trapsink.
> /usr/local/share/snmp/agentSNMPAlert.conf: line 18:
>                         Warning: Unknown token: trap2community.

Hmmm... that looks worrying.
If the master agent doesn't know about "trapsink" and the like,
then it shouldn't be able to send traps out at all.

but:

> Sending 44 bytes to UDP: [www.xxx.yyy.zzz]:162
> 0000: 30 2A 02 01  00 04 06 70  75 62 6C 69  63 A4 1D 06
0*.....public...
> 0016: 0A 2B 06 01  04 01 BF 08  03 02 0A 40  04 AC 10 00
[EMAIL PROTECTED]
> 0032: 2D 02 01 00  02 01 00 43  01 24 30 00
-......C.$0.

I don't understand how it is generating this packet, given that it
doesn't like the "trapsink" directive.

I'd also expect to see the connection conversation from your subagent.
If that initial AgentX request isn't being received, then the subagent
won't
be able to talk to the master agent for sending traps either.


I think you need to look again at how your subagent is setting up the
connection to the master agent.

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=DEVDE
V
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users



------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to