Re: sending traps from embedded AgentX subagent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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    .+.........@....
> 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=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
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.