Re: sending trap from subagent

"[email protected]" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
snmpd_m.conf  is the conf file for the master.I am starting the master with the following parameters:/usr/sbin/snmpd -f -C -D -Dagentx -p /var/run/snmpd_m.pid -c /etc/snmp/snmpd_m.conf &>>/tmp/snmpd_m.log
Am I doing something wrong in the subagent? I dont see anything in the master log (snmpd_m.log except the following)
o log handling enabled - turning on stderr loggingregistered debug token agentx, 1agentx_register_app_config_handler: registering .conf token for "agentxsocket"agentx_register_app_config_handler: registering .conf token for "agentxperms"agentx_register_app_config_handler: registering .conf token for "agentxRetries"agentx_register_app_config_handler: registering .conf token for "agentxTimeout"Turning on AgentX master support.agentx/config: port spec: tcp:localhost:705agentx/master: initializing...agentx/master: initializing...   DONENET-SNMP version 5.4.2.1Reconfiguring daemonNET-SNMP version 5.4.2.1 restarted/etc/snmp/snmpd_mgmt.conf: line 1: Warning: The separate port argument to trapsink2 is deprecatedTurning on AgentX master support.agentx/config: port spec: tcp:localhost:705agentx/master: unexpected callback op 4
Also I dont have any subagent conf file. 
Thank you
--- On Sat, 4/14/12, Dave Shield <[email protected]> wrote:

From: Dave Shield <[email protected]>
Subject: Re: sending trap from subagent
To: "[email protected]" <[email protected]>
Cc: [email protected]
Date: Saturday, April 14, 2012, 2:24 PM

On 14 April 2012 05:37, [email protected] <[email protected]> wrote:
> I only need sending trap support to the list configured in conf file

> Contents of snmpd_m.conf :
> trap2sink x.x.x.x public 162

An AgentX subagent will pass all traps on to the master agent.
So the 'trap2sink' directive would need to be in the main snmpd.conf
file,  not the subagent's config file.


Dave

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2

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